Reputation: 113
I don't have any android device so I need to use the AVD to test my app.
Unfortunately, and I can't understand why, the emulator doesn't stop to take all the space in my hard drive while I'm running the app (keep writing all the time and get all space). Now I have less than 2 GB of free disk space, and even if I delete all devices from AVD I can't get a lot of space back.
Does anyone know how to solve this problem? Need to unistall android studio?
UPDATE
Today I was able to free enough space to have 3 GB free space disk, so a created a new emulator and by lunch time I left my desk with the AVD emulator open and 2 GB free space disk. One hour later I came back and only have 500 KB left at my HD. I was testing an app with not even one writing task and he was on background state during my lunch time. Have no idea what to do.
Upvotes: 10
Views: 5933
Reputation: 591
One of the issues is that Android Studio temp files are accumulated under Windows under the AppData directory and are not deleted (C:\Users\NyAccount\AppData\Local\Temp). Of course not all the temporary files in this directory are Android Studio directories since the entire system uses it but a lot of my temp files here were generated by Android Studio. The contents of this directory can be deleted (except for temp files generated by currently running processes). In my case this was many gb.
Upvotes: 0
Reputation: 1677
Look for
c:/users/username/.android/.avd
(Where username is the name of your windows user account.)
folder. If you are creating avd over and over data of avd or deleted avd still exists at this location.
Upvotes: 3
Reputation: 107
What is the size on disk of your AVDs?
Did you try to show on disk or wipe data?
What about their configuration?
You can try SpaceSniffer to see where is your storage going.
Delete Emulator’s Temp Files
temp folder which located in this directory C:\Users\[username]\AppData\Local\Temp\AndroidEmulator .
Delete Old Version Android Studio
It isn't normal to your AVD taking up space, because they're empty. So...it's the application you're developing doing some write task? Maybe is the Android updating itself?
Upvotes: 3