事情是这样的,本来配置好了,NDK,SDK等环境,然后直接编译android studio,然后用studio出APK包,一切很顺利。。。然后今天不知道咋了,回忆了下,唯一变化过的就是好像android studio好像更新了一些东西。
现在好了,用creator 编译android studio的时候直接报错,然后报错。。。
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:libcocos2dx: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
29 actionable tasks: 1 executed, 28 up-to-date
Alternatively, you can use the experimental plugin:
https://developer.android.com/r/tools/experimental-plugin.html
-
Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 0s
执行命令出错,返回值:1。
这是说我NDK有问题嘛,折腾一下午,我是无力了。百度了下Your project contains C++ files but it is not using a supported native build system.,说的都是android studio的解决办法,但是我实际是creator编译就报错了,过不去啊。
求大佬帮我,谢谢!