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.

AndroidNativeImageLoader failing to load

See original GitHub issue

I just tried to start a simple android test application, but the result I got was:

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.github.MeFisto94.android.jme3.test-1/base.apk"],nativeLibraryDirectories=[/data/app/com.github.MeFisto94.android.jme3.test-1/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libdecodejme.so"
        at java.lang.Runtime.loadLibrary0(Runtime.java:984)
        at java.lang.System.loadLibrary(System.java:1530)
        at com.jme3.texture.plugins.AndroidNativeImageLoader.<clinit>(AndroidNativeImageLoader.java:23)
        at java.lang.Class.classForName(Native Method)
        at java.lang.Class.forName(Class.java:400)
        at java.lang.Class.forName(Class.java:326)
        at com.jme3.asset.AssetConfig.acquireClass(AssetConfig.java:62)
        at com.jme3.asset.AssetConfig.loadText(AssetConfig.java:86)
        at com.jme3.asset.DesktopAssetManager.loadConfigFile(DesktopAssetManager.java:96)
        at com.jme3.asset.DesktopAssetManager.<init>(DesktopAssetManager.java:89)
        at com.jme3.system.JmeSystemDelegate.newAssetManager(JmeSystemDelegate.java:125)
        at com.jme3.system.JmeSystem.newAssetManager(JmeSystem.java:139)
        at com.jme3.app.LegacyApplication.initAssetManager(LegacyApplication.java:216)
        at com.jme3.app.LegacyApplication.initialize(LegacyApplication.java:593)
        at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:197)
        at com.jme3.app.AndroidHarness.initialize(AndroidHarness.java:477)

TLDR: Something is wrong with the natives again, I guess. @riccardobl Do we need to do something more than just adding jme3-android as dependency? I’ve only found https://mvnrepository.com/artifact/org.jmonkeyengine/jme3-bullet-native-android but it shouldn’t include the Image Loader.

Edit: Either this https://github.com/jMonkeyEngine/jmonkeyengine/tree/master/jme3-android-native should be a separate artifact or part of jme3-android as dependency (I strongly guess and suggest the latter), so I guess that’s the problem already.

Certainly missing that in https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-android/build.gradle though.

Edit2:

Sorry for the misinformation

Actually there is a jme3-android-native artifact, but I don’t think it’s what we want, is it? Why would someone omit it? If someone wants to omit it, the AndroidNativeImageLoader needs to be shifted to that artifact, so that it’s not visible for the DesktopAssetManager

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

2reactions
stephengoldcommented, Apr 8, 2021

Additional Android examples would be welcome. Probably they should go in the jme3-android-examples folder/directory.

To install jme3-android-native to MavenLocal: ./gradlew :jme3-android-native:install

2reactions
stephengoldcommented, Apr 2, 2021

Trying to summarize…

  • The original bug report was a “pilot error”: not listing jme3-android-native as a runtime dependency of the application.
  • There are reasons to keep jme3-android and jme3-android-native as separate libraries.

The actual issues here seem to be documentation issues:

  • Document how to build JME applications for Android: what dependencies are needed.
  • Document how to deploy the jme3-android-native library to MavenLocal.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while loading Native Library in Android - Stack Overflow
I am trying to load native libraries in android studio. My Project build and runs but throws error when trying to load the...
Read more >
Question about loading images on Android devices · Issue #665
The problem is that the space where the images should be is empty. I tried to use the onError prop, but it wasn't...
Read more >
Loading Large Bitmaps Efficiently - Android Developers
Load a Scaled Down Version into Memory​​ Now that the image dimensions are known, they can be used to decide if the full...
Read more >
S3 Gateway Share URL not loading with React Native Fast ...
The failure to load these images is a severe downgrade in our app's usability. Please help us resolve this issue ASAP.
Read more >
Displaying Images with the Glide Library - CodePath Cliffnotes
If an image or set of images aren't loading, make sure to check the Android monitor log in Android Studio. There's a good...
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