NDK工程錯誤

錯誤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

發佈了35 篇原創文章 · 獲贊 4 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章