Tehreer / Tehreer-Android

Standalone text engine for Android aimed to be free from platform limitations
Apache License 2.0
89 stars 16 forks source link

java.lang.UnsatisfiedLinkError: Couldn't load tehreerjni from loader #9

Closed KarsonOdette closed 6 years ago

KarsonOdette commented 6 years ago

Hello I am currently upgrading my app from 2.0 to 2.1 of your library to fix the issues with Android 4.x.

At this line I am getting an UnsatisfiedLinkError: tehreerTypeface = new com.mta.tehreer.graphics.Typeface(context.getAssets(), "fonts/font.ttf");

The Exception:

java.lang.UnsatisfiedLinkError: Couldn't load tehreerjni from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.jesusfilmmedia.android.jesusfilm-1.apk,libraryPath=/data/app-lib/com.jesusfilmmedia.android.jesusfilm-1]: findLibrary returned null
        at java.lang.Runtime.loadLibrary(Runtime.java:355)
        at java.lang.System.loadLibrary(System.java:525)
        at com.mta.tehreer.internal.JniBridge.loadLibrary(JniBridge.java:27)
        at com.mta.tehreer.graphics.Typeface.<clinit>(Typeface.java:39)
        ...

This does not appear to be an issue on my Pixel (8.1), but it is an issue on my SamsungGalaxy S4 (Android 4.3)

Please let me know if I am doing something wrong or if I need to wait for this to be fixed on your side.

mta452 commented 6 years ago

It looks like some architectures got missed in the release. I have re-uploaded the aar file. Please download the library again and hopefully, the issue will be resolved.

KarsonOdette commented 6 years ago

Thanks for the quick response, I'll try it out tomorrow when I have access to the device.

mta452 commented 6 years ago

Sure, let me know how it goes.

KarsonOdette commented 6 years ago

I can confirm that this issue has been fixed. Thank you.