Flutter release apk doesnt work - just white screen
1,786
I thing your problem is your gradle version
.
a was same problem and I solved it with change gradle version to 3.5.4
.
dependencies {
classpath "com.android.tools.build:gradle:3.5.4"
...
}
Author by
Mykhailo Krentsin
I am a flutter & android developer from Ukraine. Also interested in backend development and learning new technologies. Find me in google searching "mishatron"
Updated on December 19, 2022Comments
-
Mykhailo Krentsin over 1 year
My app works perfectly in DEBUG mode. But when I create a release APK or run in release mode I get an only white screen after starting the app. After some trying, I detected that the problem is in method, that I call after runApp(); But what is the problem?
void handleAppLifecycleState() { SystemChannels.lifecycle.setMessageHandler((msg) async { if (msg == "AppLifecycleState.resumed") { await updateStatusBar(); } return Future.value(msg); }); }