I’m having a problems trying to import and sync my project (that uses cocos2d-x 3.17) into Android Studio.
I’m getting the following error:
ERROR: Cause: executing external native build for cmake <correct path to my CMakeLists.txt here>
Which basically only says that something is wrong with my CMakeLists.txt file, but it does not tell me what exactly. Is there any way I could make this message more verbose?
I’ve also tried building the project with:
./gradlew build --stacktrace
It did build correctly and afterwards I could import and sync the project into Android Studio, but the .apk crashed instantly, before it even got to executing any C++ code inside AppDelegate.cpp or even main.cpp.
Trying to step over Cocos’ Java parts resulted in strage errors about bytecode not matching source popping up, so I suspect that build did not go all that well either.
To be more specific, it crashed inside file:
on line 150:
nativeSetAudioDeviceInfo(isSupportLowLatency, sampleRate, bufferSizeInFrames);
Which is supposed to be the same for every generated project and simple HelloWorld works fine. I am really confused by this.
I’d rather do it all from Android Studio entirely (if possible) and without writing an Android.mk manually.