Unable to get helloworld working...?

So, I have been an iOS dev for about 3 years now, but porting my current game to android is my first trip down that rabbit hole. And oh what a doozy it is becoming. ;)
I have followed a mix of the installation instructions from this site as well as the official android site, and I think I ALMOST have it, however I am now running into an issue getting the cocos2d helloworld to compile correctly. Please be fair warned that I have NO java experience, so please be brutally honest if I am just missing something little and dumb. Thanks. Here is what I have done so far.
NOTE: Development environment is OSX
Snow Leopard 64bit & cocos2d-1.0.1-x-0.9.1

  1. Downloaded the android SDK and unzipped it to /Developer-android/android-sdk-mac_x86
  2. Downloaded the android NDK and unzipped it to /Developer-android/android-ndk-r6
  3. Ran the Android SDK and AVD Manager. Installed ALL non third party packages, and created a “Test” virtual device.
  4. Installed Eclipse (Against my better judgment, tried it before, and HATED it). If anyone knows how to make all of this work with XCode4 I will totally buy you lunch
  5. Installed the ADT plugin for eclipse.
  6. Ran the “create-android-project.sh” and created my project with a target of 2.1 update 1.
  7. Ran chmod ~~R a+rw on the project folder since for some reason all the perms were set to read only.
  8. Ran chmod on the “build_native.sh” inside of the new projects android folder since it was not allowing execute by default.
  9. Ran the “build_native.sh” within the android folder of the new project.
    So far so good, I think….
  10. I import that project into eclipse using the new android project from existing source. However this is where things just break down. At this point I get like 18 errors about @override within the cocos2d-x java files. I tried the quick and dirty “fix-me” option, which did in fact allow it to build without error, however when I tell it to install on the device, although it installs, it crashes as soon as it tries to launch. Suggestions? I figure if I can get this part up and running, I can figure out how to import my c++ files…
    Also, one last question. All of the scripts used to get to this point require my project to exist in the cocos2d-x~~ … folder in order to be built correctly. After everything is built, is it safe to move the folder elsewhere? Thanks!

First of all, can you build and run HelloWorld & Tests successfully? This step will check whether you have installed android environment correctly.
I just created a new project following your step 6~10, and successfully run it in the emulator. So I guess your trouble perhaps in step 1~5.
This video http://www.cocos2d-x.org/news/31 would be helpful to you. Good luck!

Does .so packed into apk? May be you should paste the log.

Do get rid of the @Override errors without using the quick fix prompt by Eclipse

In Eclipse (on MacOS at least):

  • Eclipse~~>Preferences~~>Java~~>Compiler “configure project specific settings”,
    ~~ Change from java 1.5 to 1.6
  • then “yes”
  • rebuild project

Post removed by creator due to his inability to read an error log properly. :stuck_out_tongue:

PS: Thank you for your help Fabien. That change to the project config allowed me to compile the first step correctly.