Error: Your project contains C++ files but it is not using a supported native build system.
2017-11-02 10:08
507 查看
Android Studio升级到3.0后,运行Android Studio项目出现这个问题:
Error:Execution failed for task ':app:compile001001_chinasowebDebugNdk'. > Error: Your project contains C++ files but it is not using a supported native build system. Consider using CMake or ndk-build integration. For more information, go to: https://d.android.com/r/studio-ui/add-native-code.html Alternatively, you can use the experimental plugin: https://developer.android.com/r/tools/experimental-plugin.html[/code]
有的说在gradle.properties中添加:android.useDeprecatedNdk=true
但是也会报错。
正确的修改方式是在build.gradle(Module:app)的buildType上面添加下面一段:sourceSets { main { jni.srcDirs = [] } } buildTypes { 、、、
相关文章推荐
- Error: Your project contains C++ files but it is not using a supported native build system
- Error: Your project contains C++ files but it is not using a supported native build system
- Error: Your project contains C++ files but it is not using a supported native build system
- Error: Your project contains C++ files but it is not using a supported native build system
- Error: Your project contains C++ files but it is not using a supported native build system
- Error: Your project contains C++ files but it is not using a supported native build system
- Error: Your project contains C++ files but it is not using a supported native build system
- Error: Your project contains C++ files but it is not using a supported native build system
- Error: Your project contains C++ files but it is not using a supported native build system
- Error: Your project contains C++ files but it is not using a supported native build system.
- Your project contains C++ files but it is not using a supported native build system.
- [笔记]如何解决Your project contains C++ files but it is not using a supported native build system
- 如何解决Your project contains C++ files but it is not using a supported native build system
- Your project contains C++ files but it is not using a supported native build system
- Eclipse项目转AndroidStudio报错:Your project contains C++ files but it is not using a supported native...
- Error:Execution failed for task ':app:compileDebugNdk'. > Error: Your project contains C++ files but
- JAVA Error:The project was not built since its build path is incomplete. Cannot find the class file for java.util.Map$Entry.....
- JAVA Error:The project was not built since its build path is incomplete. Cannot find the class file for java.util.Map$Entry.....
- The project was not built since its build path is incomplete
- The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build pat