Using latest commit from github I’ve tried to build using:
cocos gen-libs -p android --ap android-19 --app-abi armeabi-v7a
And got an error:
Could not determine java version from ‘9.0.4’.
Then I downgraded java to 8 and got some compile… but again an error -
No such file or directory: '/Volumes/MacData/cocos2d-x/tests/cpp-empty-test/proj.android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a'
So, finally I’ve decided to abandon using of pre-builts for android. For iOS&macOS it’s works like a charm, who would doubt that… and will continue to use it.
But now, I want to build my game for android using “full source code” option or “native”, I don’t know how to better call it.
Just now, I have perfectly working Xcode project with my game C++ source code files and Resources.
What should I do next? How to setup build using Android Studio?
Before that I just copied project found on this forum, it was for prebuilts and edited it a little bit and got compiled for my game. But now, I can’t figure out how to do it right. Can someone please share maybe proj.android-studio folder from working project, so I can learn from it and modify it for my game. And also, I’m using FMOD, for prebuilts it’s was just add:
LOCAL_SHARED_LIBRARIES := fmod
$(call import-add-path, $(LOCAL_PATH)/../../../Classes/FMOD)
I hop it will be same if using source code config…