Hi. I’ve looked all over for similar problem but can’t seem to find the answer so I’m hoping someone could help me.
I ran create-android-project.sh in mac terminal and it works fine. I run build_native.sh and there’s no errors. Then I create a new android project in eclipse from existing source code (the directory that I created from the shell script) but I get a few errors.
In the androidmanifest.xml file, the line “android:icon=”@drawable/icon“>” it says no resource is found. That is simple enough to solve. I just copy the icon.png file into the res/drawable dir.
In the .java file, these 3 lines have errors:
mGLView = (Cocos2dxGLSurfaceView) findViewById(R.id.game_gl_surfaceview);
Right now, it can’t find the R. But I noticed in the HelloWorld sample, it doesn’t have the “import android.R” line. How do I fix this?
I assume if I just run that simple script, it would generate the HelloWorld sample code for me to start with, and there would be no compile problems. Did I miss a step or overlook something. Would appreciate any help.
BTW, I am using cocos2d-1.0.1-x-0.9.2. Thanks.