java.lang.UnsatisfiedLinkError

I was thinking we should have a forum to deal with android errors rather than taking up Android forum space.

I seem to be getting quite a few 'java.lang.UnsatisfiedLinkError’ errors on android that is causing me to blow the bad behavior threshold.

Is this something that I am causing in my code or is it a Corona issue, I don’t really know where to start looking?

Thanks, Greg


The UnsatisfiedLinkError is thrown when an application attempts to load a native library like .so in Linux, .dll on Windows or .dylib in Mac and that library does not exist. Specifically, in order to find the required native library, the JVM looks in both the PATH environment variable and the java.library.path system property.

I’m using Corona 2018.3329

with the following plugins:

[“plugin.google.iap.v3”] = { publisherId = “com.coronalabs” ,supportedPlatforms = { android=true }},

[“plugin.amazon.iap”] = {publisherId = “com.coronalabs”, supportedPlatforms = { [“android-kindle”]=true }},

[“plugin.openssl”] ={publisherId = “com.coronalabs”},

Apparently the 12 crashes are all on this device : Xperia Z5 Compact (E5823)

and this is from the google play log:

java.lang.UnsatisfiedLinkError :

 

at java.lang.Runtime.loadLibrary0 (Runtime.java:989)

 

at java.lang.System.loadLibrary (System.java:1530)

 

at com.ansca.corona.JavaToNativeShim.<clinit> (JavaToNativeShim.java:116)

 

at com.ansca.corona.CoronaEnvironment.setLuaErrorHandler (CoronaEnvironment.java:391)

 

at com.ansca.corona.CoronaEnvironment.<clinit> (CoronaEnvironment.java:50)

 

at com.ansca.corona.CoronaActivity.onCreate (CoronaActivity.java:231)

 

at android.app.Activity.performCreate (Activity.java:6720)

 

at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1119)

 

at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2673)

 

at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2781)

 

at android.app.ActivityThread.-wrap12 (ActivityThread.java)

 

at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1508)

 

at android.os.Handler.dispatchMessage (Handler.java:102)

 

at android.os.Looper.loop (Looper.java:241)

 

at android.app.ActivityThread.main (ActivityThread.java:6274)

 

at java.lang.reflect.Method.invoke (Native Method)

 

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:886)

 

at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:776)

Do you have more of the error? What version of Corona did you use? What plugin?

– Edit

I just checked. I have been really lucky lately. My error rates are currently very low. I couldn’t find your error on my app.

Hi agramonte,

Lucky!!!   With all the problems with google installs dropping because of their new AI algorithm, I need to get the crash threshold down under 1%, my ANR’s are non existent which is great!

Oops, I updated the op with this detail.

Thanks, Greg

Sorry, I don’t see anything suspicious in anything you have posted. If I had to take a guess, I suspect that that phone has some crappy custom rom and the person didn’t bother installing all the Google libraries or maybe can’t find where to download them from.

I don’t doubt it is something isolated to the crappy phone he is using, but if it impacts my bad behaviour threshhold it hurts my search placement right?

Greg

Unfortunately, yes it does.

I’ve reported it to our engineers but if it’s happening on one device, I’m not sure how much luck we will have if that device is missing some important libraries.

Rob

How many of this crashes do you have? It seems that sometimes android fails to load libraries for no good reason. We was not able to reproduce it in any way, except people showing rare crashes of this type in their consoles.

Do you have a repro for this crash?

Hi Vlads,  I can’t reproduce it, so far its the one guy 12 times on that Sony phone.  If it pops up again I’ll let you know.

I probably jumped the gun on this one, when I posted I thought it was more than one person, but it was just one device.

Thanks, Greg

Do you have more of the error? What version of Corona did you use? What plugin?

– Edit

I just checked. I have been really lucky lately. My error rates are currently very low. I couldn’t find your error on my app.

Hi agramonte,

Lucky!!!   With all the problems with google installs dropping because of their new AI algorithm, I need to get the crash threshold down under 1%, my ANR’s are non existent which is great!

Oops, I updated the op with this detail.

Thanks, Greg

Sorry, I don’t see anything suspicious in anything you have posted. If I had to take a guess, I suspect that that phone has some crappy custom rom and the person didn’t bother installing all the Google libraries or maybe can’t find where to download them from.

I don’t doubt it is something isolated to the crappy phone he is using, but if it impacts my bad behaviour threshhold it hurts my search placement right?

Greg

Unfortunately, yes it does.

I’ve reported it to our engineers but if it’s happening on one device, I’m not sure how much luck we will have if that device is missing some important libraries.

Rob

How many of this crashes do you have? It seems that sometimes android fails to load libraries for no good reason. We was not able to reproduce it in any way, except people showing rare crashes of this type in their consoles.

Do you have a repro for this crash?

Hi Vlads,  I can’t reproduce it, so far its the one guy 12 times on that Sony phone.  If it pops up again I’ll let you know.

I probably jumped the gun on this one, when I posted I thought it was more than one person, but it was just one device.

Thanks, Greg