Error: ADB exited with exit code 1 - Requested internal only, but not enough space
If you're running the Android emulator on a low-memory machine, you may get an INSTALL_FAILED_INSUFFICIENT_STORAGE
error as explained here:
Other relevant questions:
- Flutter - android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space
- Installation failed with message Error: android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space
In all cases, the issue seems to be that the Android emulator needs to have more internal storage. This answer shows the steps for fixing it:
This may also be solved by wiping the emulator data.
Then you can run these commands and try again:
flutter clean
flutter pub get