Flutter app stuck at installing with white screen

Viewed 929

My flutter app is always getting stuck in installing when I run on my device Lenovo L18021, app is launched with the white screen and it is not moving past that, I am not running a custom app, I am just running the demo app comes as default, I tried changing package name of the app and used flutter clean multiple times, I used File->Invalidate cache and Restart option multiple times in android studio, I found that I am receiving an untrusted app message in the logcat, I do not know if that is the issue, I also increased the buffer size on my device, and the app is launching fine in the web and from my android studio the native android apps are launching on that device correctly, only the flutter apps are not launching, that too while launching from the android studio only. If I opened the installed app in my phone later the app is running correctly, I even did a factory reset on my device then tried to run the app from android studio, still it is not working, "flutter doctor -v" is not showing any errors, I have been stuck with this issue for the past two weeks kindly help me to resolve this issue ?

My screenshots

launch screen

While lauching

Flutter doctor -v doctor

Logcat enter image description here

Device screenshot enter image description here

1 Answers

Didn’t you accidentally create two different MainActivity files, with different project name. If so delete one.

android/app/src/main/kotlin/com/YOUR_PROJECT/MainActivity.kt

Related