NDK工程错误

来源:互联网 发布:淘宝网天猫女装冬装 编辑:程序博客网 时间:2024/05/29 07:19

错误1

What went wrong:
Execution failed for task ‘:app:compileDebugNdk’.
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 “$USE_DEPRECATED_NDK=true” in gradle.properties to continue using the current NDK integration.
* Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

解决方法

1、在project目录下创建gradle.properties文件
2、在文件中加入:
$USE_DEPRECATED_NDK=true
android.useDeprecatedNdk=true
3、Sync project with gradle

0 0
原创粉丝点击