2015-09-02 79 views
8

我使用的是Android Studio版本1.3.1,並嘗試通過轉到local.proprties和寫作ndk.dir到NDK整合=我得到這個錯誤NDK集成Android Studio中的錯誤

錯誤:執行失敗任務':tesstwo:compileReleaseNdk'。

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.

請幫我解決這個問題。

+0

入住這 - > http://stackoverflow.com/q/31979965/4018207 – AndiGeeky

+0

@Mamata我剛纔說這個說法在gradle.properties但其不給這樣的財產並顯示相同的錯誤。 – Corrupt

+0

@腐敗:你做同樣的接受答案。 – AndiGeeky

回答

14

添加到您的build.gradle:

android{ 
     sourceSets { 
       main { 
        jni.srcDirs = [] 
       } 
      } 
     } 
+0

Ohk它的工作.. :) – Corrupt

+0

的路徑@Corrupt:很高興它工作:) – AndiGeeky

+0

經過10天的搜索它終於工作。謝謝你 –