gpt4 book ai didi

flutter - 致命异常 : main, 启动应用程序/Flutter 时出错

转载 作者:行者123 更新时间:2023-12-05 06:48:12 29 4
gpt4 key购买 nike

我在下面启动我的 Android 应用程序时遇到了一些错误。我认为这与 AndroidManifest.xml 有关 提前感谢您的帮助!

调试控制台输出:

√ Built build\app\outputs\flutter-apk\app-debug.apk.
E/AndroidRuntime(12850): FATAL EXCEPTION: main
E/AndroidRuntime(12850): Process: com.example.finalproject, PID: 12850
E/AndroidRuntime(12850): java.lang.RuntimeException: Unable to instantiate application io.flutter.app.FlutterApplication: java.lang.ClassNotFoundException: Didn't find class "io.flutter.app.FlutterApplication" on path: DexPathList[[zip file "/data/app/com.example.finalproject-TKk2pSYMBdlivmhMJqry9A==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.finalproject-TKk2pSYMBdlivmhMJqry9A==/lib/arm64, /data/app/com.example.finalproject-TKk2pSYMBdlivmhMJqry9A==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64]]
E/AndroidRuntime(12850): at android.app.LoadedApk.makeApplication(LoadedApk.java:1230)
E/AndroidRuntime(12850): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6575)
E/AndroidRuntime(12850): at android.app.ActivityThread.access$1400(ActivityThread.java:227)
E/AndroidRuntime(12850): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1890)
E/AndroidRuntime(12850): at android.os.Handler.dispatchMessage(Handler.java:107)
E/AndroidRuntime(12850): at android.os.Looper.loop(Looper.java:224)
E/AndroidRuntime(12850): at android.app.ActivityThread.main(ActivityThread.java:7590)
E/AndroidRuntime(12850): at java.lang.reflect.Method.invoke(Native Method)

Didn't find class "io.flutter.app.FlutterApplication" on path: DexPathList[[zip file "/data/app/com.example.finalproject-TKk2pSYMBdlivmhMJqry9A==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.finalproject-TKk2pSYMBdlivmhMJqry9A==/lib/arm64, /data/app/com.example.finalproject-TKk2pSYMBdlivmhMJqry9A==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64]]

最佳答案

Flutter 项目使用的引用似乎有问题。您可以运行 flutter cleanflutter pub cache repair 来帮助重建项目中使用的引用,然后运行 ​​flutter pub get 下载配置的插件。

关于flutter - 致命异常 : main, 启动应用程序/Flutter 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66869678/

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