Error: "Can't find service: activity"
I got the following message in the terminal while trying to do hot reload on my Flutter app.
I was using a Pixel 5 VM as emulator through Android Studio.
cmd: Can't find service: activity
Error: ADB exited with exit code 1
Performing Streamed Install
This is how it looked in my terminal:
![](https://res.cloudinary.com/tedgustaf/image/upload/f_auto,dpr_auto,q_auto,fl_progressive/w_767,h_183,c_scale/www-prod/optimizely/a4c372f3-3da0-4d68-98ab-ce173133b15d/error-android-studio.png)
Solution: Wipe data from VM
The solution I found was that my virtual machine had not only grown in size, from 1 GB to almost 10GB, but I was also using it to test multiple apps simultaneously.
Solution - wipe the data from the virtual machine.
This is how you do it:
1. Open Android Studio
2. Open Virtual Device Manager, that is found under "More actions".
![](https://res.cloudinary.com/tedgustaf/image/upload/f_auto,dpr_auto,q_auto,fl_progressive/w_767,h_579,c_scale/www-prod/optimizely/af2f1788-1c16-4460-9535-0a5cac221217/android-studio.png)
3. Open the Virtual Machine that you want to empty the database from. Important note: Make sure it is not in use. Select Wipe data from the tools menu.
![](https://res.cloudinary.com/tedgustaf/image/upload/f_auto,dpr_auto,q_auto,fl_progressive/w_767,h_248,c_scale/www-prod/optimizely/433a20aa-9d8b-4bb1-8bc6-336c689e9b22/android-studio-whipe-data.png)
And then you are good to go.
Restart the VM and execute "flutter run" again. Hopefully it solves your problem too.