question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.UnsatisfiedLinkError reported on Android 4.3、4.4 devices

See original GitHub issue

objectbox Version 1.4.4


java.lang.UnsatisfiedLinkError
Native method not found: io.objectbox.query.Query.nativeFind:(JJJJ)Ljava/util/List;

 io.objectbox.query.Query.nativeFind(Native Method)
 io.objectbox.query.Query$4.call(Query.java:255)
 io.objectbox.query.Query$4.call(Query.java:252)
 io.objectbox.BoxStore.callInReadTx(BoxStore.java:675)
 io.objectbox.BoxStore.callInReadTxWithRetry(BoxStore.java:620)
 io.objectbox.query.Query.callInReadTx(Query.java:304)
 io.objectbox.query.Query.find(Query.java:252)
 com.taoche.qctt.cache.db.NewsReadDbHelper.getNewsReadList(NewsReadDbHelper.java:80)
 com.taoche.qctt.app.App.putNewsReadSet(App.java:99)
 com.taoche.qctt.app.App.onCreate(App.java:79)
 com.stub.StubApp.onCreate(SourceFile:111)
 android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1009)
 android.app.ActivityThread.handleBindApplication(ActivityThread.java:4632)
 android.app.ActivityThread.access$1800(ActivityThread.java:141)
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1298)
 android.os.Handler.dispatchMessage(Handler.java:102)
 android.os.Looper.loop(Looper.java:136)
 android.app.ActivityThread.main(ActivityThread.java:5336)
 java.lang.reflect.Method.invokeNative(Native Method)
 java.lang.reflect.Method.invoke(Method.java:515)
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
 dalvik.system.NativeStart.main(Native Method)

tim 20180412111615

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sandsabercommented, May 2, 2018

@greenrobot Thanks! Abi filter helps:

ndk {
            abiFilters  "armeabi-v7a", "x86","x86_64", "arm64-v8a"
        }

Works like charm!

0reactions
greenrobotcommented, Apr 27, 2018

You should always have the same libs in all the folders. Try to exclude those incomplete/outdated ones: armeabi, mips, x86_64 (google “ABI filter”) from your APK and check if that already helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do some Android phones cause our app ... - Stack Overflow
I tried it with one of my apps and got an "unsatisfied link error" crash report from a customer who updated anyway. Incomplete...
Read more >
Link failure on certain Android devices - Issues
We are getting some link failures on loading the sqcipher library on certain Android devices. Fatal Exception: java.lang.UnsatisfiedLinkError
Read more >
Native library fails on ICS onwards devices after updating the ...
Currently, our customers are facing an issue of UnsatisfiedLinkError, when updating the app to new version. Android OS version: Reported on ...
Read more >
Android application automatically closed In iMX6 S...
Hi Experts, I want to do benchmark test in Android 4.4.3 i. ... W/dalvikvm( 912): Exception Ljava/lang/UnsatisfiedLinkError; thrown while ...
Read more >
Supporting Older Versions | Android Open Source Project
On this page · Building recent old releases (>= 5.0 Lollipop) · Building really old releases (<= 4.4 KitKat). Operating systems; GNU make;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found