Atin Agrawal
Atin Agrawal

Reputation: 188

How to run cocos2d-x v3.7 projects on Android Studio

cocos2d-x V3.7 supports Android Studio, but I'm unable to run even the test app. Everytime I deploy the app on my Android device and try to run, my device gives and error "Unfortunately, libcocos2dx has stopped". I think I'm doing it the wrong way. Can anyone guide me with how to run the project properly?

Upvotes: 1

Views: 2809

Answers (2)

amisha.beladiya
amisha.beladiya

Reputation: 363

break point work in java file in android studio.break point in cpp file is not consider in debug.Try to debug build_native.sh file in console and then run your project

Upvotes: 1

finalpets
finalpets

Reputation: 281

Android Studio cant build with ndk yet, so what i do, is import proj.android on Android Studio, and then compile in console in the root of you project:

Cocos compile -p android

And now you can Debug and install the apk file on android studio, just click debug and play, no more crashes, but if you modify any file ,you need to compile again in cocos console, and install the apk again VIA Android studio Debug.

Upvotes: 1

Related Questions