gpt4 book ai didi

android - Flutter 初始化失败,java.lang.UnsatisfiedLinkError : dlopen failed: library "libflutter.so" not found

转载 作者:行者123 更新时间:2023-12-04 11:33:40 26 4
gpt4 key购买 nike

该应用程序在 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)
我尝试了 this post 中建议的所有修复。 ,但他们都没有解决问题

最佳答案

我卸载和Clean Project (由 Android Studio 提供)。再次运行它对我有用。

关于android - Flutter 初始化失败,java.lang.UnsatisfiedLinkError : dlopen failed: library "libflutter.so" not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65386544/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com