简体   繁体   English

Android Studio错误中的NDK集成

[英]NDK Integration in Android Studio Error

I am using Android studio version 1.3.1 and try to integrate the NDK by going to local.proprties and writing ndk.dir= and I got this error 我正在使用Android工作室版本1.3.1并尝试通过转到local.proprties并编写ndk.dir =来集成NDK,我收到此错误

Error:Execution failed for task ':tesstwo:compileReleaseNdk'. 错误:任务':tesstwo:compileReleaseNdk'的执行失败。

Error: NDK integration is deprecated in the current plugin. 错误:当前插件中不推荐使用NDK集成。 Consider trying the new experimental plugin. 考虑尝试新的实验插件。 For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental . 有关详细信息,请参阅http://tools.android.com/tech-docs/new-build-system/gradle-experimental Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration. 在gradle.properties中设置“android.useDeprecatedNdk = true”以继续使用当前的NDK集成。

Please help me to sole this issue. 请帮我解决这个问题。

Add this to your build.gradle : 将其添加到build.gradle:

android{
        sourceSets {
              main {
                  jni.srcDirs = []
              }
          }
       }

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

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