hi guys, having trouble to compiling to android studio, compiling to standard android works fine.
i have added the classes to android.mk file at \proj.android-studio\app\jni
do i need to do something else?
here is the error.
F:\BitBucket\spikes\code\Spikes2>cocos compile -p android --android-studio
Building mode: debug
Using Android Studio project : F:\BitBucket\spikes\code\Spikes2\proj.android-studio
Android platform not specified, searching a default one…
running: ‘“E:\Android\sdk\tools\android” update project -t android-19 -p F:\BitBucket\spikes\code\Spikes2\proj.android-studio\app’
hey can you tell me what changes you have done to your Android.mk file.I am experiencing same problem but can’t get through your solution,
Here is my error:
make.exe: *** No rule to make target jni/../../Classes/AppDelegate.cpp', needed by obj/local/armeabi/objs/cocos2dcpp_shared///Classes/AppDelegate.o’. Sto
p.
make.exe: *** Waiting for unfinished jobs…
[armeabi] Compile++ thumb: cocos2dcpp_shared <= main.cpp
jni/hellocpp/main.cpp:1:25: fatal error: AppDelegate.h: No such file or director
y #include “AppDelegate.h”
^
compilation terminated.
make.exe: *** [obj/local/armeabi/objs/cocos2dcpp_shared/hellocpp/main.o] Error 1
Have you compile for first time ? I mean no changes in project. By default you can compile for android without change anything.
But if you add some files in project that need be compiled, you must change Android.mk.
i have changed Android.mk file but I am getting that error.I have also tried with new project but got same for android studio.On contrary it is compiled successfully for android only
if you compiling the regular project(eclipse) so u need to add …/…/Classes/nameclass.cpp there are 2 …/
if you compiling for android studio u need to add …/…/…/Classes/nameclass.cpp there are 3 …/