Cocos Compile --android-studio

Cocos Compile --android-studio
0.0 0


‘Standard’ compile command works fine:
cocos compile -p android -m debug --ap android-23

I get an apparent link error when I compile using this command:
cocos compile -p android -m debug --ap android-23 –android-studio

jni/…/…/…/Classes/AppDelegate.cpp:289: error: undefined reference to ‘MainMenu::createScene()’
collect2: error: ld returned 1 exit status
make: *** [obj/local/armeabi/] Error 1
Error running command, return code: 2.

Struggling with this - any ideas please?


have you updated under ?

also all files one more level up compared to eclipse project setup in


Ahh, building now thank you. Made me look foolish :confused:

In my folder I have my various icons resolutions:

res/drawable-hdpi/icon.png 72x72 res icon

res/drawable-xxxhdpi/icon.png 192x192 res icon

do I need to include similar versions of my icons in:

res/mipmap-xxxhdpi etc. ?

If so, where/how are these used?

Thanks again.


Definetly u need to add icon to all of this folder, naming of icon file was changed in android studio compared to eclipse.

We using this site to generate full set of icons from big one:


Thanks :slight_smile: