Which API should I use?


#21

@smitpatel88 Which API should I compile using?

For example:
cocos compile -p android --ap android-"??"

PS: I’ve previously compiled my app with API 26. Is this the reason why the crash on the Galaxy S4?


#22

26, use same as targetSdk
@erenarat pls delete obj folder, sometimes it fix crash issue.


#23

OK I delete obj folder. I am trying now. :slight_smile:


#24

@smitpatel88 We dit it! Thanks for everything. My app is running smoothly on the Galaxy S4!

PS: Will also work on a “Android 4.0.3 (API 15) device”?


#25

Great. Welcome.

I dont have device but it should work.
But personally i dont care for less than Android 4.2


#26

I’m still interested in the error message in the logcat (which is now sadly gone), because now we will never know what of your steps really fixed it.


#27

I am using Atom Editor. I do not know how to access the error code found in logcat.


#28

With the command line tool adb. It’s described here and will help a lot, if run into errors in the future while developing.