AirKiss 3.0開發,項目用AS打開的時候遇到的問題 Error: NDK integration is deprecated in the current plugin. Consider

Error: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.


最近因爲項目需要,研究了一下微信的硬件平臺的開發的AirKiss 3.0 ;上面的錯誤是把下載想來的demo用Android Studio打開的時候出現的問題:

解決方法如下:


在你的app——build.gradle當中添加如下代碼:

sourceSets.main {
    jni.srcDirs = []
}
 

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