Search code examples
androidflutterandroid-studioandroid-emulatorflutter-run

Stop Button not working for flutter in Android studio


The stop button not working and run button is disabled

See the following picture: enter image description here

I am using android studio on Macbook pro with M1 Chip. I downloaded the M1 chip-optimized Android studio. When I run the flutter project on the Android emulator with Android Studio, It runs fine but after some time If I try to stop the app. It does not stop and if I try to reload it, the reload button becomes disabled.

If I use the IOS emulator, I do not get this issue.

It only happens when I run my flutter project on Android emulators or Real Android devices.


Solution

  • Dart officially supports Apple Silicon, but the one which is bundled with Flutter SDK works with Intel.

    I managed to replace it with the Apple Silicon compatible version using flutter_m1_patcher. There are more ways to replace it which you can find here:- How to replace the bundled Dart SDK in Flutter to run natively on Apple Silicon (ARM64)?

    After doing this, I have not faced this stop button issue from last three days. Will update here in case I face the problem again.

    Update (15/02/2022) Life is great after this. Resolves problem for me.

    Update (25/05/2022) Flutter 3 now have Apple M1 compatible Dart SDK bundled into it. Issue is resolved.