I am getting a no space left on device error

2019-04-11 10:50发布

问题:

I tried installing a tablet as a virtual device and after installing it , It does not even show and my gradle stopped syncing citing no space on device...

Also I could not get the gradle vm settings to increase the memory using the option -Xmx512m

I could not delete the virtual device as it does not show any as intsalled , i cannot add as it shows no image available and the standalone sdk manager also does not open saying lack of memory...

I have a lot of disk and RAM free , and am at a loss...

I tried invalidating cache and restarting , that didnt help either... Any help will be appreciated...

OS : Solus Android Studio Version : 2.2

回答1:

Clearing the temporary folder worked for me...

sudo rm -rf /tmp/*


回答2:

You can increase available space in tmp by doing remount instead of "rm -rf" :

mount -o remount,size=8G,noatime /tmp


回答3:

I recently faced this problem I guess I have an answer. Step 1 : Close the emulator which is currently running and in which you want to see your results. Step 2 : Go to the AVD Manager in Android Studio which is a phone like icon and in there you will have your virtual machines displayed. Step 3 : Select the down arrow symbol in the right most corner of your virtual machine and click wipe data.

This way all the data is wiped off and you can open your virtual machine again

Hope this works for you ! :)