21

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?

9
  • 1
    Hi even my released application also having same issue. Any solution you found?
    – Jai Techie
    Commented Feb 3, 2022 at 12:05
  • not yet, sorry.
    – Dani
    Commented Feb 20, 2022 at 12:31
  • I am facing the same issue. Commented Mar 8, 2022 at 7:19
  • 1
    Firebase is reporting the same issue. Commented Jun 29, 2022 at 8:11
  • 1
    I need solution for this problem. here the error also happens. it's boring. Commented Oct 1, 2022 at 11:43

1 Answer 1

4

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.