Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error in production app #10

Open
allanwolski opened this issue Apr 1, 2019 · 6 comments
Open

Runtime error in production app #10

allanwolski opened this issue Apr 1, 2019 · 6 comments

Comments

@allanwolski
Copy link
Contributor

allanwolski commented Apr 1, 2019

Google Play recorded this error 3 times in 1 day with different devices.

  • Motorola moto g(6) play (aljeter), Android 8.0
  • Samsung Galaxy J4+ (j4primelte), Android 8.1
  • LGE LG K10 LTE (m253), Android 6.0
java.lang.RuntimeException:
  at io.flutter.embedding.engine.FlutterJNI.ensureAttachedToNative (FlutterJNI.java:514)
  at io.flutter.embedding.engine.FlutterJNI.invokePlatformMessageResponseCallback (FlutterJNI.java:477)
  at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply (DartMessenger.java:129)
  at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success (MethodChannel.java:204)
  at pt.tribeiro.flutter_plugin_pdf_viewer.FlutterPluginPdfViewerPlugin$1.run (FlutterPluginPdfViewerPlugin.java:45)
  at java.lang.Thread.run (Thread.java:764)
@allanwolski
Copy link
Contributor Author

  • Motorola Moto G (5S) Plus (sanders_nt), Android 7.1
java.lang.RuntimeException:
  at io.flutter.embedding.engine.FlutterJNI.ensureAttachedToNative (FlutterJNI.java:514)
  at io.flutter.embedding.engine.FlutterJNI.invokePlatformMessageResponseCallback (FlutterJNI.java:477)
  at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply (DartMessenger.java:129)
  at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success (MethodChannel.java:204)
  at pt.tribeiro.flutter_plugin_pdf_viewer.FlutterPluginPdfViewerPlugin$1.run (FlutterPluginPdfViewerPlugin.java:45)
  at java.lang.Thread.run (Thread.java:761)

@CrossPT
Copy link
Owner

CrossPT commented Apr 12, 2019

Hi. This is a known issue of Flutter itself in release mode Please add the following to your android/app/build.gradle:

defaultConfig {
    ..
    ndk {
         abiFilters 'armeabi-v7a'
    }
}

@CrossPT
Copy link
Owner

CrossPT commented Apr 12, 2019

Please let me known if this works

@allanwolski
Copy link
Contributor Author

The error occurred while testing this option on my Xiaomi Mi 8

java.lang.UnsatisfiedLinkError:` dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.bsoft.ixml-4QPI2_c9tPcAe4fAwEosiw==/base.apk"],nativeLibraryDirectories=[/data/app/com.bsoft.ixml-4QPI2_c9tPcAe4fAwEosiw==/lib/arm64, /system/lib64, /vendor/lib64]]] couldn't find "libflutter.so"
	at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
	at java.lang.System.loadLibrary(System.java:1669)
	at io.flutter.view.FlutterMain.startInitialization(FlutterMain.java:160)
	at io.flutter.view.FlutterMain.startInitialization(FlutterMain.java:135)
	at io.flutter.app.FlutterApplication.onCreate(FlutterApplication.java:22)
	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1155)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5945)
	at android.app.ActivityThread.access$1200(ActivityThread.java:200)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1673)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:201)
	at android.app.ActivityThread.main(ActivityThread.java:6806)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

@CrossPT
Copy link
Owner

CrossPT commented Apr 16, 2019

Hi. Yes, that is a issue caused by using the abiFilter, please check this link:
flutter/flutter#18494

@allanwolski
Copy link
Contributor Author

@CrossPT, I do not understand how this might be related to the error reported here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants