2

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

App config:

  • Target SDK version 22 (Android Lollipop).

  • Min SDK is 14.

  • NDK r10c with eclipse.

Dania Delbani
  • 816
  • 1
  • 11
  • 27

2 Answers2

3

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.
Dania Delbani
  • 816
  • 1
  • 11
  • 27
0

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.

trojanfoe
  • 120,358
  • 21
  • 212
  • 242