错误信息
Error:Execution failed for task ':dmo:compileDebugNdk'.
> 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
错误解决办法,从网上搜索的,不知道为什么会有这样的解决方案,
sourceSets { main { jni.srcDirs = [] } }
正确解决方案
sourceSets { main { jniLibs.srcDirs = [] } }
这样就可以运行了,是不是跟我再main下面建的文件夹就是jniLibs 有关啊