Not enough disk space error

Hello, I am working on my flutter project in Firebase Studio and my emulator doesn’t start because the home directory is limited to only 10GB of storage.Does anyone know any solution to expand the storage?

There currently is no way to increase storage capacity of any drive or mount.
Try to run the following commands to free up some space:

  • rm -rf /tmp (temporary folder)
  • rm -rf /home/user/.android/cache (android cache)
  • rm -rf /home/user/.gradle/caches (gradle caches)
  • flutter clean (cleans build files, next build will take longer)
  • flutter pub cache clean (cleans the pub.dev caches)
  • flutter pub get (to re-download resolved dependencies)

You might wanna try running these as well:

  • rm -rf /home/user/.gradle/wrapper/dists
  • rm -rf /home/user/.gradle/daemon

This clears up orphaned gradle versions that are no longer needed.

Also cleaning the android sdk under /home/user/.androidsdkroot of unused versions might help.

1 Like

100% agree with - @Levin - This is the way

@Dragos_Enache I am actually quite impressed you have hit the 10gb limit. That must be one massive project.

Another thing you can do if you have a ton of large images is to utilize your firestore. That is its intent, to store images and files that really should not be stored directly in the app itself. This could also assist you in freeing up space.