简体   繁体   中英

Flutter run don't finish

In a new flutter project, I run flutter doctor command and it says everything is okay. When I try to run my app it doesn't finish or error out. It just says running. What should I do.

if everything is right with flutter doctor command, your app is probably initializing gradle which took some time before the app is properly running.

Run flutter run -v and you will see output telling you that the app is initializing gradle

This is how it looks in the Run window:

Launching lib\\main.dart on Android SDK built for x86 in debug mode... Initializing gradle...

give it sometime to download gradle and it will run normally, of course this won't be an issue for future runs but always run flutter with the -v option

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