Spoke too soon… It seems the project is created, but the permissions are wrong. I have to edit them to add my user with full control to the project directory and its children.
Even then, when the project is imported into Eclipse it has some errors:
Description Resource Path Location Type
The import org.cocos2dx.lib cannot be resolved Test.java /Test/src/com/leiradella/test line 26 Java Problem
Cocos2dxActivity cannot be resolved to a type Test.java /Test/src/com/leiradella/test line 33 Java Problem
Cocos2dxActivity cannot be resolved to a type Test.java /Test/src/com/leiradella/test line 30 Java Problem
error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon'). AndroidManifest.xml /Test line 10 Android AAPT Problem
I took a look at the
proj.android\src\org\cocos2dx folder and it’s empty. I was expecting to find a
lib subfolder and
Cocos2dxActivity.java in it. I then copied everything under
cocos2dx\platform\android\java\src\org and, after fixing the icon error, I was able to build and run the project.
However, the application fails to run in the emulator, and LogCat is showing some link errors which lead me to believe that the project is still broken…
Note: I get an error when I try to run
create-android-project.bat as Administrator:
Error!!! You should run it under cocos2dx root
What I did was running
cmd.exe as Administrator, navigating to cocos2d-x root directory and then executing the batch file.