该应用在iOS上正常运行,但当我尝试在Android上运行时,会出现以下错误:
E/FlutterLoader( 9150): Flutter initialization failed.
E/FlutterLoader( 9150): java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dlopen failed: library "libflutter.so" not found
E/FlutterLoader( 9150): at java.util.concurrent.FutureTask.report(FutureTask.java:123)
E/FlutterLoader( 9150): at java.util.concurrent.FutureTask.get(FutureTask.java:193)
E/FlutterLoader( 9150): at io.flutter.embedding.engine.loader.FlutterLoader.ensureInitializationComplete(FlutterLoader.java:178)
E/FlutterLoader( 9150): at io.flutter.embedding.engine.FlutterEngine.<init>(FlutterEngine.java:289)
E/FlutterLoader( 9150): at io.flutter.embedding.engine.FlutterEngine.<init>(FlutterEngine.java:192)
E/FlutterLoader( 9150): at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.setupFlutterEngine(FlutterActivityAndFragmentDelegate.java:234)
E/FlutterLoader( 9150): at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:154)
E/FlutterLoader( 9150): at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:410)
E/FlutterLoader( 9150): at android.app.Activity.performCreate(Activity.java:8000)
E/FlutterLoader( 9150): at android.app.Activity.performCreate(Activity.java:7984)
E/FlutterLoader( 9150): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
E/FlutterLoader( 9150): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
E/FlutterLoader( 9150): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
E/FlutterLoader( 9150): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
E/FlutterLoader( 9150): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
E/FlutterLoader( 9150): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
E/FlutterLoader( 9150): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
E/FlutterLoader( 9150): at android.os.Handler.dispatchMessage(Handler.java:106)
E/FlutterLoader( 9150): at android.os.Looper.loop(Looper.java:223)
E/FlutterLoader( 9150): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/FlutterLoader( 9150): at java.lang.reflect.Method.invoke(Native Method)
E/FlutterLoader( 9150): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/FlutterLoader( 9150): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/FlutterLoader( 9150): Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libflutter.so" not found
E/FlutterLoader( 9150): at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
E/FlutterLoader( 9150): at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
E/FlutterLoader( 9150): at java.lang.System.loadLibrary(System.java:1664)
E/FlutterLoader( 9150): at io.flutter.embedding.engine.loader.FlutterLoader$1.call(FlutterLoader.java:129)
E/FlutterLoader( 9150): at io.flutter.embedding.engine.loader.FlutterLoader$1.call(FlutterLoader.java:123)
E/FlutterLoader( 9150): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
E/FlutterLoader( 9150): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/FlutterLoader( 9150): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/FlutterLoader( 9150): at java.lang.Thread.run(Thread.java:923)
我尝试了这篇文章中提到的所有修复方法,但都没有解决问题。