简体   繁体   English

Flutter:安装后 Android 应用出现问题

[英]Flutter: problems with Android app after installation

This is not a duplicate of the question: Unfortunately MyApp has stopped.这不是问题的重复: 不幸的是 MyApp 已停止。 How can I solve this? 我该如何解决这个问题?

The problem is when running an app on independent device, not connected to the computer.问题是在独立设备上运行应用程序时,未连接到计算机。

Basically, I have a Flutter app that works fine in Run mode and Hot Reload of Android Studio and on the connected device.基本上,我有一个 Flutter 应用程序,它可以在运行模式和 Android Studio 的热重载以及连接的设备上正常工作。

However, when I created .apk file, placed this file to the Google Play Market and downloaded the app into the smartphone, the app does not work.但是,当我创建 .apk 文件,将此文件放入 Google Play Market 并将该应用程序下载到智能手机时,该应用程序不起作用。

It looks like this: I press "Open" on the icon of the mobile app, I see a message "App has stopped" with available options "Open app again" and "Send feedback".它看起来像这样:我在移动应用程序的图标上按“打开”,我看到一条消息“应用程序已停止”,其中包含“再次打开应用程序”和“发送反馈”的可用选项。

My questions are:我的问题是:

(1) How is it possible to check what exact failure the app has? (1) 如何检查应用程序究竟发生了什么故障?

(2) Is it possible to use Fabric for Flutter apps? (2) 是否可以将 Fabric 用于 Flutter 应用程序? If yes - does this require the same actions as for an Android mobile app?如果是 - 这是否需要与 Android 移动应用程序相同的操作?

Thank you in advance for your support.预先感谢您对我们的支持。

Sincerely, Mary真诚的,玛丽

Try this: https://pub.dev/packages/firebase_crashlytics试试这个: https : //pub.dev/packages/firebase_crashlytics

Firebase crashlytics: Whenever your app crashes or throws an error, the firebase crashlytics library will capture it and sends the details to firebase. Firebase crashlytics:每当您的应用程序崩溃或抛出错误时,firebase crashlytics 库都会捕获它并将详细信息发送到 firebase。 Make an account on firebase, and create an app.在 firebase 上创建一个帐户,然后创建一个应用程序。 Click on Crashlytics on the side menu and complete the setup.单击侧面菜单上的 Crashlytics 并完成设置。 It should start logging crashes to your firebase account.它应该开始将崩溃记录到您的 Firebase 帐户。

Background: I am getting the same issue.背景:我遇到了同样的问题。 It works on many phones.它适用于许多手机。 But some of my users keep getting the error "Unfortunately myApp has stopped working".但是我的一些用户不断收到错误消息“不幸的是 myApp 已停止工作”。 I just connected it to firebase_crashlytics.我只是将它连接到 firebase_crashlytics。 This works very well in Native Android apps.这在原生 Android 应用程序中非常有效。 I am trying for the first time in Flutter.我第一次在 Flutter 中尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以在 Flutter 中为 Android 应用程序安装应用程序后更改应用程序图标和名称吗? - Can I change the app icon and name after app installation in Flutter for an Android app? Android:安装后检测应用程序 - Android: detetct app after installation 操作系统重新安装会中断 Android Flutter App 的安装 - OS Reinstall breaks installation of Android Flutter App Android Studio Chipmunk 未显示 flutter 应用程序安装的 android 设备 - Android Studio Chipmunk not showing android device for flutter app installation 安装后应用程序未保持状态 - Xamarin android - App is not maintaining the state after installation - Xamarin android 重新安装Android App后,应用程序会收到旧安装的通知 - After reinstalling Android App the App gets notifications meant for the old installation 应用安装后如何自动为Android应用创建快捷方式 - how to create shortcut for android app automatically after app installation 成功安装后,我的第一个android应用程序未运行 - my first android app doesn't running after successful installation 安装应用程序后在 android 工作室中启动活动时出错 - Error While launching activity in android studio after the app installation 在Android中安装应用程序后如何显示欢迎屏幕 - How to display welcome screen after the installation of the app in Android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM