简体   繁体   English

在 Android Studio 中添加 64 位库

[英]Adding 64 bit libraries in Android studio

I have added below line of code to generate 64 bit lib files,But still so of the lib files are missing in 64 bit folders, How can I add those missing libraries?我添加了以下代码行以生成 64 位 lib 文件,但是 64 位文件夹中仍然缺少 lib 文件,如何添加那些缺少的库? Do I need it add those libraries externally.我是否需要它在外部添加这些库。 在此处输入图片说明

Code:代码:

ndk 

    {
      abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64"

    }

You'll need to generate your 64-bit so using您需要生成 64 位,因此使用

  1. Create Application.mk inside your jni folder, where your native files are present在您的 jni 文件夹中创建Application.mk ,其中存在您的本机文件
  2. paste this APP_ABI := all in the Application.mk file.将此APP_ABI := all粘贴到Application.mk文件中。 Save it.保存。
  3. Run ndk-build in the jni folder where your Application.mk is present.Application.mk所在的 jni 文件夹中运行ndk-build
  4. If you've configured your => Android .mk with current modules you'll get so's for all the architecture in libs or jniLibs directory.如果您已使用当前模块配置 => Android .mk ,您将获得 libs 或 jniLibs 目录中的所有架构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM