Issue
I tried running my Flutter app on an emulator and it works just fine. Then after trying out the application a few times, I decided to create an .apk file out of the app, but when I tried to install it on my phone, it just outputs white screen and nothing else (usually when I ran it, it outputs the login screen). I also had my friend install the .apk file to his phone, but to no avail he also reported a white screen and nothing else.
Then I tried another method of loading the app by running the application on my phone, instead of building the .apk file and installing it manually on my phone. To my surprise it works perfectly if I were to run the application from the Android Studio IDE directly onto my phone.
Can somebody point out to me what am I missing here? Am I supposed to change something in my build.gradle file before compiling it into an .apk file? Let me know if you have any ideas!
Thanks!
Solution
Are you using Firebase or other packages?
If yes, you can probably having error when use a release mode app. And to fix it, we need to know what packages you are using.
If not, please follow this issue https://github.com/flutter/flutter/issues/70558
Answered By - Thiago Carvalho
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.