NDK集成在Android的Studio错误错误、NDK、Android、Studio

2023-09-06 06:50:10 作者:你听风在吹,我在等你归

我使用的是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://tool​​s.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 = []
        }
    }