

Now the new command line needs two more parameters for target and App Level: -p android and -ap android-19 Then I added the two Pathes for Python27 and Ant-Apache Sometimes when you unzip files there are extra nested folders so I check if there was any extra folder but no, all folders look ok.Ĭ:\Users\username\AppData\Local\Android\android-ndk-r10d\ndk-stack.exeĬ:\Users\username\AppData\Local\Android\sdk\SDK Manager.exeĬ:\Users\username\AppData\Local\Android\apache-ant-1.9.7\bin

In the same Android folder I put the 3 dependencies:įolder: C:\Users\username\AppData\Local\AndroidĬ:\Users\username\AppData\Local\Android\android-ndk-r10dĬ:\Users\username\AppData\Local\Android\sdkĬ:\Users\username\AppData\Local\Android\apache-ant-1.9.7 Python 2.7 (Installed) (Uninstalled 3.5 just in case). I’ve seen that I was following some kind of a deprecated workflow, so if you are in the same place go according with the more updated guide posted here:Īndroid Command Line (Android Studio is installed)

I’ve seen that the recommendation is to use the Windows CMD, then navigate to the game folder and within the project.android folder type: cocos compile -android -android-studio, then following instructions I needed the 3 environment variables for the SDK, NDK and the Apache Server, but Adobe Studio now (version 2.2.1) is installing the NDK from the SDK manager, so I don’t know what I should to type in here in order to pass this step in the setup and so be able to finish with the compile command, due now there is no folder to Path to the NDK, or at least I don’t now Its location. With this change Android Studio started to build the game but then It crashed when It launched the app in a real devise with a fatal error and an promp message: Disculpe: Lamentablemente la aplicacion M圜ppGame se detuvo - The English translation for this error should be: Sorry, M圜ppGame has stopped unexpectedly.Īfter some time I gave up on using the Studio to compile the Cocos app and I went for the Python road, (I uninstalled Python 3.5 and I just left the 2.7 version installed for what it worth). I really want to give Cocos a try but in Android Studio it crashes with the Template HelloWorld Cocos app.The first problem I encountered was that the Gradle version was not updated in the Cocos2d template so I should to change it to 2.14.1 instead 2.1.
