Gustavo Oliveira
Gustavo Oliveira

Reputation: 113

AVD doesn't stop to consume disk space

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

Answers (3)

Kirt Undercoffer
Kirt Undercoffer

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

Yogesh Jog
Yogesh Jog

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

fcortell
fcortell

Reputation: 107

What is the size on disk of your AVDs?

enter image description here

Did you try to show on disk or wipe data?

enter image description here

What about their configuration?

enter image description here

You can try SpaceSniffer to see where is your storage going.

enter image description here

Delete Emulator’s Temp Files temp folder which located in this directory C:\Users\[username]\AppData\Local\Temp\AndroidEmulator .

enter image description here

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

Related Questions