关闭

NDK工程错误

标签: ndkapp
579人阅读 评论(0) 收藏 举报
分类:

错误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

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:11437次
    • 积分:467
    • 等级:
    • 排名:千里之外
    • 原创:35篇
    • 转载:5篇
    • 译文:1篇
    • 评论:1条
    文章分类