Repository: flutter
Issue: Android crash: Fatal Exception: java.lang.RuntimeException java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar"........
Labels: c: crash,platform-android,engine,customer: crowd,a: production,P2,c: fatal crash,team-android,triaged-android

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## 2024 Overview: 
The root of this issue for most all flutter customers is that your app is running on physical android hardware that flutter does not support. The "fix" is to not ship your app to devices where flutter cannot run. For most users this means using gradle to indicate to Google Play that your app can run on a subset of all android supported hardware architectures. 

Flutter did not include abi filtering in `flutter create`  until https://github.com/flutter/flutter/pull/135529/. 
Add to app flutter customers may *not* want to add abi filtering and instead may choose to check the hardware before exposing screens using flutter. 


## Original issue: 

We have seen this crash a number of times in the wild from crashlytics.

```
Flutter 2.3.0-12.1.pre • channel unknown • unknown source
Framework • revision f9c825981c (11 days ago) • 2021-05-18 14:07:52 -0700
Engine • revision 26e217e6c3
Tools • Dart 2.14.0 (build 2.14.0-edge.a527411e5100a0a4f48c4009087a1b988aa784af)
```

```
Fatal Exception: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/android.test.mock.jar", zip file "/data/app/androidx.test.tools.crawler-9262JYIXoHZf_UzjtJHTSg==/base.apk", zip file "/data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/base.apk", zip file "/data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.en.apk", zip file "/data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.mdpi.apk", zip file "/data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.x86.apk"],nativeLibraryDirectories=[/data/app/androidx.test.tools.crawler-9262JYIXoHZf_UzjtJHTSg==/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/lib/x86, /data/app/androidx.test.tools.crawler-9262JYIXoHZf_UzjtJHTSg==/base.apk!/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/base.apk!/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.en.apk!/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.mdpi.apk!/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.x86.apk!/lib/x86, /system/lib, /system/vendor/lib]]] couldn't find "libflutter.so"
       at io.flutter.embedding.engine.loader.FlutterLoader.ensureInitializationComplete(FlutterLoader.java:356)
       at io.flutter.embedding.engine.FlutterEngine.<init>(FlutterEngine.java:212)
       at io.flutter.embedding.engine.FlutterEngine.<init>(FlutterEngine.java:12)
       at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.setupFlutterEngine(FlutterActivityAndFragmentDelegate.java:106)
       at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:7)
       at io.flutter.embedding.android.FlutterFragment.onAttach(FlutterFragment.java:10)
       at androidx.fragment.app.Fragment.performAttach(Fragment.java:49)
       at androidx.fragment.app.FragmentStateManager.attach(FragmentStateManager.java:199)
       at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:143)
       at androidx.fragment.app.FragmentManager.a(FragmentManager.java:277)
       at androidx.fragment.app.FragmentManager.c(FragmentManager.java:84)
       at androidx.fragment.app.FragmentManager.d(FragmentManager.java:21)
       at androidx.fragment.app.FragmentManager.a(FragmentManager.java:42)
       at androidx.fragment.app.FragmentManager.g(FragmentManager.java:11)
       at androidx.fragment.app.FragmentController.a(FragmentController.java:4)
       at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:15)
       at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1391)
       at androidx.test.runner.MonitoringInstrumentation.callActivityOnStart(MonitoringInstrumentation.java:2)
       at android.app.Activity.performStart(Activity.java:7157)
       at android.app.ActivityThread.handleStartActivity(ActivityThread.java:2937)
       at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180)
       at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165)
       at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:193)
       at android.app.ActivityThread.main(ActivityThread.java:6669)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
```

```
Caused by java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/android.test.mock.jar", zip file "/data/app/androidx.test.tools.crawler-9262JYIXoHZf_UzjtJHTSg==/base.apk", zip file "/data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/base.apk", zip file "/data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.en.apk", zip file "/data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.mdpi.apk", zip file "/data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.x86.apk"],nativeLibraryDirectories=[/data/app/androidx.test.tools.crawler-9262JYIXoHZf_UzjtJHTSg==/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/lib/x86, /data/app/androidx.test.tools.crawler-9262JYIXoHZf_UzjtJHTSg==/base.apk!/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/base.apk!/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.en.apk!/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.mdpi.apk!/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.x86.apk!/lib/x86, /system/lib, /system/vendor/lib]]] couldn't find "libflutter.so"
       at java.util.concurrent.FutureTask.report(FutureTask.java:123)
       at java.util.concurrent.FutureTask.get(FutureTask.java:193)
       at io.flutter.embedding.engine.loader.FlutterLoader.ensureInitializationComplete(FlutterLoader.java:23)
       at io.flutter.embedding.engine.FlutterEngine.<init>(FlutterEngine.java:212)
       at io.flutter.embedding.engine.FlutterEngine.<init>(FlutterEngine.java:12)
       at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.setupFlutterEngine(FlutterActivityAndFragmentDelegate.java:106)
       at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:7)
       at io.flutter.embedding.android.FlutterFragment.onAttach(FlutterFragment.java:10)
       at androidx.fragment.app.Fragment.performAttach(Fragment.java:49)
       at androidx.fragment.app.FragmentStateManager.attach(FragmentStateManager.java:199)
       at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:143)
       at androidx.fragment.app.FragmentManager.a(FragmentManager.java:277)
       at androidx.fragment.app.FragmentManager.c(FragmentManager.java:84)
       at androidx.fragment.app.FragmentManager.d(FragmentManager.java:21)
       at androidx.fragment.app.FragmentManager.a(FragmentManager.java:42)
       at androidx.fragment.app.FragmentManager.g(FragmentManager.java:11)
       at androidx.fragment.app.FragmentController.a(FragmentController.java:4)
       at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:15)
       at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1391)
       at androidx.test.runner.MonitoringInstrumentation.callActivityOnStart(MonitoringInstrumentation.java:2)
       at android.app.Activity.performStart(Activity.java:7157)
       at android.app.ActivityThread.handleStartActivity(ActivityThread.java:2937)
       at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180)
       at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165)
       at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:193)
       at android.app.ActivityThread.main(ActivityThread.java:6669)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
```

```
Caused by java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/android.test.mock.jar", zip file "/data/app/androidx.test.tools.crawler-9262JYIXoHZf_UzjtJHTSg==/base.apk", zip file "/data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/base.apk", zip file "/data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.en.apk", zip file "/data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.mdpi.apk", zip file "/data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.x86.apk"],nativeLibraryDirectories=[/data/app/androidx.test.tools.crawler-9262JYIXoHZf_UzjtJHTSg==/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/lib/x86, /data/app/androidx.test.tools.crawler-9262JYIXoHZf_UzjtJHTSg==/base.apk!/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/base.apk!/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.en.apk!/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.mdpi.apk!/lib/x86, /data/app/com.bottlepay-8ydLlC0-lSa8GtGQNZaXDg==/split_config.x86.apk!/lib/x86, /system/lib, /system/vendor/lib]]] couldn't find "libflutter.so"
       at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
       at java.lang.System.loadLibrary(System.java:1669)
       at io.flutter.embedding.engine.FlutterJNI.loadLibrary(FlutterJNI.java:13)
       at io.flutter.embedding.engine.loader.FlutterLoader$1.call(FlutterLoader.java:14)
       at io.flutter.embedding.engine.loader.FlutterLoader$1.call(FlutterLoader.java)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:764)
```

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

I'm unsure exactly how to reproduce as it seems to happen randomly to some users at startup.

The only device reported affected in crashlytics:
* Model:GCE x86 phone - Android 9

**Expected results:** <!-- what did you want to see? -->

**Actual results:** <!-- what did you see? -->

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
fvm: running version "2.3.0-12.1.pre"

[✓] Flutter (Channel unknown, 2.3.0-12.1.pre, on macOS 11.3.1 20E241 darwin-arm, locale en-US)
    • Flutter version 2.3.0-12.1.pre at /Users/andrewcoutts/fvm/versions/2.3.0-12.1.pre
    • Upstream repository unknown
    • Framework revision f9c825981c (11 days ago), 2021-05-18 14:07:52 -0700
    • Engine revision 26e217e6c3
    • Dart version 2.14.0 (build 2.14.0-edge.a527411e5100a0a4f48c4009087a1b988aa784af)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/andrewcoutts/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/andrewcoutts/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5, Build version 12E262
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.54.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] VS Code (version 1.57.0-insider)
    • VS Code at /Applications/Visual Studio Code - Insiders.app/Contents
    • Flutter extension version 3.22.0

[✓] Connected device (2 available)
    • iPhone 12 Pro Max (mobile) • EFD575D6-D986-42B2-89A6-821FA97FD09D • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 91.0.4472.77

• No issues found!
```

</details>