Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter: io.flutter.embedding.engine.FlutterJNI.loadLibrary

From Crashlytics in Firebase I get this error in my Flutter app:

FlutterJNI.java – line 116 io.flutter.embedding.engine.FlutterJNI.loadLibrary

or

FlutterJNI.java – line 1230 io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread

apparently, a solution is to add this in settings.gradle:

gradle.beforeProject({ project->
    project.setProperty("target-platform", "android-arm")
})

But the problem is that I will remove support for all of these devices (some of them bought my app):

enter image description here

Is that the only solution?

like image 209
Dani Avatar asked Nov 24 '25 12:11

Dani


1 Answers

This is a known issue tracked in this GitHub issue ticket. The error is commonly caused by attempting to run Flutter in x86 platform even though Flutter has yet to have support for x86. If the x86 devices has support for ARM emulation, then it should run without issues.

like image 197
Omatt Avatar answered Nov 27 '25 13:11

Omatt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!