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.
Extract tools/android.bat or tools/android from this zip file,
Overwrite the current SDK folder and copy it.
In my case, “cocos compile” and “cocos run” is now successful with this work.
I managed to compile my Cocos2DX-android project in Android Studio after I stumbled with this problem. I used to do cocos compile too. I wrote a detailed document in PDF format on how I did it. Here is the download link.
Anyone come up with different solution to this? SDKBOX Appodeal seems to require the newest tools to compile for android-studio but the new tools don’t work with Cocos2dx… Not sure where to go from here, except switching ad services.
Would firebase work for ads? I have just managed to get the firebase sdk working for the first time under android. Admittedly all I can do so far is authentication but it might be a way to avoid sdkbox?