Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 303
Ahmed Sheikh Avatar asked May 02 '26 19:05

Ahmed Sheikh


1 Answers

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.

like image 59
Sunny Avatar answered May 05 '26 07:05

Sunny



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!