gpt4 book ai didi

android - Flutter Release bundle 或 APK 在启动时崩溃,dlopen 失败 : library "libflutter.so" not found

转载 作者:行者123 更新时间:2023-12-04 23:39:37 32 4
gpt4 key购买 nike

我的调试 apk 正在运行 perfacet,但在模拟器 Pixel 3a api 30 中,该版本在启动时崩溃
这是我在 android studio

2021-02-25 10:20:52.264 6454-6454/? E/FlutterLoader: Flutter initialization failed.
java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dlopen failed: library "libflutter.so" not found
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:178)
at io.flutter.view.FlutterMain.ensureInitializationComplete(FlutterMain.java:78)
at io.flutter.app.FlutterActivityDelegate.onCreate(FlutterActivityDelegate.java:145)
at io.flutter.app.FlutterActivity.onCreate(FlutterActivity.java:91)
at com.shoaibanwar.saray.MainActivity.onCreate(MainActivity.kt:9)
at android.app.Activity.performCreate(Activity.java:8000)
at android.app.Activity.performCreate(Activity.java:7984)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libflutter.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
at java.lang.System.loadLibrary(System.java:1664)
at io.flutter.embedding.engine.loader.FlutterLoader$1.call(FlutterLoader.java:129)
at io.flutter.embedding.engine.loader.FlutterLoader$1.call(FlutterLoader.java:123)
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:923)
中的错误日志

最佳答案

尝试更改 abiFilters 在 build.gradle 中 安卓/应用程序/构建
见文档 abiFilters .

defaultConfig { 
ndk {
abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'mips', 'mips64', 'arm64-v8a'
}
}
仅构建 abiFilters 中指定的平台。如果您在 x86 计算机上构建本地仿真器,则需要 'x86', 'x86_64' .
常见问题:不包括 'x86', 'x86_64'以防止您的应用可用于 Play 商店或机器人中的 x86 android 设备,然后无法在本地模拟器上运行您的应用,而物理连接的 android 设备构建良好。

关于android - Flutter Release bundle 或 APK 在启动时崩溃,dlopen 失败 : library "libflutter.so" not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66363437/

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