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):

Is that the only solution?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With