2017-04-20 126 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

非常感谢:)它的作品 –