Hello, I need step by step instructions to get setup for building for android on windows with eclipse or visual studios … I just cant seem to get anything correctly done and I’m getting many errors…
Thanks!!
Hello, I need step by step instructions to get setup for building for android on windows with eclipse or visual studios … I just cant seem to get anything correctly done and I’m getting many errors…
Thanks!!
I just began working with Cocos and I had a lot of difficulties, so I understand your feeling. I just wrote a step-by-step instruction, but not in english though.
I guess you watched the tutorial for setting it up? If not, link:
Here my guide:
・cocos2d-x v3.0
・Android NDK (depending on your system 32bit or 64 bit)
・JDK(Java Development Kid)
・In the tutorial they use Eclipse, but since Eclipse support for Android ended I decided to go for Android Studio (together with the SDK)
・Apache Ant
・Python
Aftr installing everything open command prompt and execute the setup.py (just like in the tutorial from 5:50 ot 7:05)
Setup finished!
When you want to create a hello world project do the following:
・open command prompt and create a new project with the command
cocos new FirstProject -l cpp -d C:/Users/username /CocosDevelopment/Projects
・move to the directory of your new project (cd C:/Users/username/CocosDevelopment/Projects/FirstProject/proj.android-studio) and enter the following command
cocos compile -p android --ap android-20 --android-studio
・enable the debug options on your android device and connect it with your PC
・open Android Studio, choose Import Project and select the location of the android-studio project (C:/Users/username/CocosDevelopment/Projects/FirstProject/proj.android-studio)
・Hit the run button, select your device and it should be running
Some people say that they had to use NDK 9 (instead of 10), but 10 worked for me. My first big problem was that I did not compile for an android target under 21, which also let to problems with the NDK. That’s why there is a “–ap android-20” in the compile command.
I currently go through the tutorials using Visual Studio. There is a solution file in the proj.win32 folder, just opening and running it worked for me. Sometimes I try running the results my learning on the android device using Android studio.
At least this setup and workflow worked for me for the last 4 days since starting, and maybe it helps you as well.
If you are still having issues, please do let us know and we can assist you via Skype.
@SonarSystems Yes can you add me at “ruvimkuz2000” thanks!!