NDK集成在Android的Studio错误 [英] NDK Integration in Android Studio Error
问题描述
我使用的是Android Studio版本1.3.1,并尝试通过转到local.proprties和写作ndk.dir到NDK整合=我得到这个错误
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
错误:执行失败的任务:tesstwo:compileReleaseNdk。
Error:Execution failed for task ':tesstwo:compileReleaseNdk'.
错误:NDK集成是在当前的插件pcated德$ P $。考虑尝试新的实验插件。有关详细信息,请参阅 http://tools.android.com/tech -docs /新制造系统/ gradle这个实验性。设置android.useDe precatedNdk =真在gradle.properties继续使用目前的NDK集成。
Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see 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.
请帮我唯一的这个问题。
Please help me to sole this issue.
推荐答案
添加到您的build.gradle:
Add this to your build.gradle :
sourceSets {
main {
jni.srcDirs = []
}
}
这篇关于NDK集成在Android的Studio错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!