bkonyi / FlutterGeofencing

Rough work for Flutter geofencing plugin
BSD 3-Clause "New" or "Revised" License
337 stars 219 forks source link

Android callback exception: java.lang.UnsatisfiedLinkError #73

Open klyver opened 3 years ago

klyver commented 3 years ago

Our users are getting the following exception, which we have not been able to recreate ourselves on our own devices.

java.lang.UnsatisfiedLinkError: 
  at io.flutter.embedding.engine.FlutterJNI.nativeLookupCallbackInformation (Native Method)
  at io.flutter.view.FlutterCallbackInformation.lookupCallbackInformation (FlutterCallbackInformation.java:30)
  at io.flutter.plugins.geofencing.GeofencingService.startGeofencingService (GeofencingService.kt:75)
  at io.flutter.plugins.geofencing.GeofencingService.onCreate (GeofencingService.kt:122)
  at android.app.ActivityThread.handleCreateService (ActivityThread.java:3686)
  at android.app.ActivityThread.access$1300 (ActivityThread.java:207)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1709)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:205)
  at android.app.ActivityThread.main (ActivityThread.java:6983)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:884)

What is the reason the reason we are getting quite a lot of these exceptions?

tashiwangdi commented 2 years ago

Hi @bkonyi : Could a fix similar to this one - https://github.com/flutter/plugins/commit/de56da50ca78ef275a95b4e59ce8d5e119eadd7a#diff-e57a1a7ffb729ad174b597626202429c1c87e4168e19b2aa9decc1be84e8777b help get rid of the error?

java.lang.UnsatisfiedLinkError: 
  at io.flutter.embedding.engine.FlutterJNI.nativeLookupCallbackInformation (Native Method)
  at io.flutter.view.FlutterCallbackInformation.lookupCallbackInformation (FlutterCallbackInformation.java:30)