2017-04-20 41 views
0

我想運行一個使用C++模塊的項目,我嘗試了一切,沒有任何工作,它仍然得到這個錯誤。你能幫我在android studio中發生這個錯誤嗎?

錯誤:執行任務':pulseandroid:compileDebugNdk'失敗。

Error: Your project contains C++ files but it is not using a supported native build system. Consider using CMake or ndk-build integration with the stable Android Gradle plugin: https://developer.android.com/studio/projects/add-native-code.html or use the experimental plugin: https://developer.android.com/studio/build/experimental-plugin.html .

+0

請更改線程名的東西描述你的問題。 – theblitz

+0

您是否閱讀過指定的鏈接? –

回答

0

1 - 確保NDK是安裝

2 - 將這個部分build.gradle(Module:app)上述buildTypes{}

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

非常感謝:)它的作品 –

相關問題