java.lang.UnsatisfiedLinkError

com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_0-classes.dex"],nativeLibraryDirectories=[/data/app/org.tensorflow.demo-1/lib/arm64, /system/lib64, /vendor/lib64]]] couldn't find "libtensorflow_demo.so"

Samebug tips1

This happens sometimes when Android fails to load the necessary libraries when you install an app. Try reinstalling it or telling your client to reinstall it, as it seems to correctly install the libraries and fixes the problem.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3877

  • via GitHub by faizan0148
    , 9 months ago
    /org.tensorflow.demo/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_0-classes.dex"],nativeLibraryDirectories=[/data/app/org.tensorflow.demo-1/lib/arm64, /system/lib64, /vendor/lib64]]] couldn't find "libtensorflow_demo.so"
  • /org.tensorflow.demo/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_0-classes.dex"],nativeLibraryDirectories=[/vendor/lib, /system/lib, /vendor/lib, /system/lib]]] couldn't find "libtensorflow_demo.so"
  • /org.tensorflow.demo/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_0-classes.dex"],nativeLibraryDirectories=[/vendor/lib, /system/lib, /vendor/lib, /system/lib]]] couldn't find "libtensorflow_demo.so"
  • Stack trace

    • java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/org.tensorflow.demo/files/instant-run/dex/slice-slice_0-classes.dex"],nativeLibraryDirectories=[/data/app/org.tensorflow.demo-1/lib/arm64, /system/lib64, /vendor/lib64]]] couldn't find "libtensorflow_demo.so" at java.lang.Runtime.loadLibrary0(Runtime.java:972) at java.lang.System.loadLibrary(System.java:1530) at org.tensorflow.demo.TensorFlowImageClassifier.<clinit>(TensorFlowImageClassifier.java:35) at org.tensorflow.demo.TensorFlowImageListener.<init>(TensorFlowImageListener.java:63) at org.tensorflow.demo.CameraConnectionFragment.<init>(CameraConnectionFragment.java:452) at org.tensorflow.demo.CameraConnectionFragment.newInstance(CameraConnectionFragment.java:271) at org.tensorflow.demo.CameraActivity.setFragment(CameraActivity.java:85) at org.tensorflow.demo.CameraActivity.onRequestPermissionsResult(CameraActivity.java:57) at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7069) at android.app.Activity.dispatchActivityResult(Activity.java:6921) at android.app.ActivityThread.deliverResults(ActivityThread.java:4049) at android.app.ActivityThread.handleSendResult(ActivityThread.java:4096)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    4 times, 1 month ago
    Unknown user
    Once, 1 month ago
    2 times, 2 months ago
    Unknown user
    Once, 2 months ago
    8 times, 4 months ago
    258 more bugmates