简体   繁体   中英

Flutter: problems with Android app after installation

This is not a duplicate of the question: Unfortunately MyApp has stopped. 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.

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.

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?

(2) Is it possible to use Fabric for Flutter apps? If yes - does this require the same actions as for an Android mobile app?

Thank you in advance for your support.

Sincerely, Mary

Try this: 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. Make an account on firebase, and create an app. Click on Crashlytics on the side menu and complete the setup. It should start logging crashes to your firebase account.

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". I just connected it to firebase_crashlytics. This works very well in Native Android apps. I am trying for the first time in Flutter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM