Android Studio对NDK程序的编译问题

来源:互联网 发布:淘宝服装店铺策划书 编辑:程序博客网 时间:2024/06/05 20:54

昨天搞了下NDK,结果发现了一些小问题。

现在说明下:

Error:(12, 0) 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.

在StackOverflow找到了答案:

首先要在项目根目录下新建个gradle.properties,

加个:

android.useDeprecatedNdk=true

再单击Sync again即可。


0 0
原创粉丝点击