HaxeFoundation / HaxeFoundation/hxcpp
Compiling for Android - Crashes on Android 6.0
- Dominant language
- C++
- Stars
- 330
- Forks
- 227
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 18
Description
I have an app that works on Android versions < 6.0 but crashes on 6.0.
Crash Report:
`java.lang.UnsatisfiedLinkError: dlopen failed: library "C:\Development\Android NDK/platforms/android-9/arch-arm/usr/lib/libc.so" not found
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at org.haxe.HXCPP.run(HXCPP.java:18)
at org.haxe.lime.GameActivity.onCreate(GameActivity.java:120)
at android.app.Activity.performCreate(Activity.java:6876)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)
at android.app.ActivityThread.access$1100(ActivityThread.java:222)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)`
I searched the apk for the string that caused the error, `libApplicationMain-v7.so` is the only result.
The problem string matches [this line](https://github.com/HaxeFoundation/hxcpp/blob/master/toolchain/android-toolchain.xml#L163)
I tested on DisplayinigABitmap created with `openfl create project DisplayingABitmap` without adding any code, and find the same string in `libApplicationMain-v7.so` that causes the error.
I'm using the latest version of hxcpp 3.3.49
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.