Flutter's main.dart file gets stuck at "Syncing files to device Android SDK built for x86 64..." at execution in Android Studio Flutter's main.dart file gets stuck at "Syncing files to device Android SDK built for x86 64..." at execution in Android Studio dart dart

Flutter's main.dart file gets stuck at "Syncing files to device Android SDK built for x86 64..." at execution in Android Studio


Well, it seems on Linux that's because of some changes in kernel 5.5. I tested multiple times and I am sure - on kernel 5.4 it works, but on kernel 5.5 refactoring hangs and also debug does not work.

That's strange, I have no idea how is is related to kernel (refactoring? wtf?), I can suspect some changes in filsestem handling could cause that? Need to create bug report to InteliJ or Flutter and tell them new kernel causes problem.

Also strange, when developing in Java/Kotlin with Android Studio, I have no problems, refactoring and debug both work just fine. So this must be related to Flutter.

So, on Linux need to downgrade kernel to 5.4 for now (no idea about Mac or Win).


Put this statement right after the beginning of main function.

WidgetsFlutterBinding.ensureInitialized();

And then restart the application.


i experienced this problem when i was not connected to net.And I was running that project for the first time.So check your internet and restart the app couple of time it will run fast