I’m porting my iOS app to Android and am using the Android Studio project that Cocos created for me.
I just updated Android Studio and now when I attempt to compile using:
cocos compile -p android --android-studio --app-abi armeabi --ap android-21
I get the following response:
The android command is no longer available.
For manual SDK and AVD management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
Error running command, return code: 1.
I’m very new to Android Studio and gradle. It looks like cocos compile command is trying to use an android command that is now gone.
How do I edit my Android Studio files do the same job the cocos compile command did? I see the Android.mk and Application.mk files are already part of the project, but Android Studio doesn’t use them when I tell it to build.
Any help would be appreciated!