Dania Delbani
Dania Delbani

Reputation: 826

UnsatisfiedLinkError, Cocos2D-x app crash on startup

My Cocos2D-x app is working only on android 22+ and crash in lower platforms throwing an exception java.lang.UnsatisfiedLinkError

App config:

Upvotes: 2

Views: 2401

Answers (2)

Dania Delbani
Dania Delbani

Reputation: 826

Update:

Very useful answer https://stackoverflow.com/a/27093163/3547788

Old solution: Possible fix by changing the ndkr10 to ndkr9 then the app will work for all android versions, For NDK10:

  • changing the target & min sdk at the manifest to 14
  • add APP_PLATFORM := android-14 to application.mk
  • clean and build.

Upvotes: 3

trojanfoe
trojanfoe

Reputation: 122391

Well you decide on the minimum version of Android to support and your game is then expected to run on all versions from that version to the latest version.

You cannot, for example, decide to support 2.3, 4.0.4 and 5.0.1, but not 4.4.2 and 5.0.

See <uses-sdk> reference.

Upvotes: 0

Related Questions