Fix Android Emulator “Not Enough Space” Error (installDebug Failed)

Fix Android Emulator “Not Enough Space” Error (installDebug Failed)



If you are running a React Native app and see this error when executing npm run android, you are not alone.

Execution failed for task ':app:installDebug'.
...
java.io.IOException: Requested internal only, but not enough space

This error usually means one thing:

🚨 Your Android Emulator is out of storage


💡 Root Cause

By default, Android Virtual Devices (AVD) are created with very limited internal storage (often 2GB–6GB). Over time, this space gets filled by:

  • Debug APK installs
  • Gradle build artifacts
  • System updates and cache

Eventually, there is no space left to install your app.


✅ My Fix (Works Immediately)

The most effective solution is to increase the emulator storage size.

  1. Open Android Studio
  2. Go to Device Manager
  3. Edit your emulator (or create a new one)
  4. Click Show Advanced Settings
  5. Set Internal Storage to 16 GB
  6. Save and restart the emulator

After increasing to 16GB, the issue disappears.


⚡ Alternative Quick Fix

If you need a quick temporary fix:

  • Wipe emulator data (Device Manager → Wipe Data)
  • Uninstall the app manually:
adb uninstall your.package.name

However, these are temporary. The real fix is increasing storage.


🧠 Pro Tips

  • Always allocate at least 12GB–16GB for development AVDs
  • Avoid using snapshots (they can preserve “full disk” state)
  • Clean builds occasionally:
cd android
./gradlew clean

✅ Conclusion

If you see:

Requested internal only, but not enough space

It is not a code issue — it is your emulator running out of disk space.

Fix: Increase AVD internal storage to 16GB.

This is the most reliable and permanent solution.

❤️ Support This Blog


If this post helped you, you can support my writing with a small donation. Thank you for reading.


Comments

Popular posts from this blog

fixed: embedded-redis: Unable to run on macOS Sonoma

Copying MDC Context Map in Web Clients: A Comprehensive Guide

Reset user password for your own Ghost blog