How to delete Emulator cache?

Malky

Active Member
Licensed User
Longtime User
Hi I use my emulator at times (which is very fast may I add), but my problem is the cache remains. On certain tests I need it to start from scratch, but if it has previously run the app, then the old stuff is still there.

Any suggestions are most welcome.

Thanks,

Malky
 

dougc

Member
Licensed User
Longtime User
if I understand your question ......

when you start the emulator on the "launch options" box towards the button there is an option that says "Wipe user data" check this box before clicking on launch and the data will be wiped.

dougc
 
Upvote 0

Malky

Active Member
Licensed User
Longtime User
Nope, this doesn't work either. I've cleared cache, ticked the checkbox and still the app starts as if it's been installed before?

On the first run, it should create a directory, database and load quite a few images? None of this happens, it goes straight to the menu?

Malky
 
Upvote 0

Malky

Active Member
Licensed User
Longtime User
SOLVED, but dirty!

After a lot of searching and testing various things, I can clear the Emulator cache now and the emulator works fine.

Assuming you have an emulator set up in the avd called 'Emulator'

On my system I have a directory called .android. Inside that there should be a directory called avd which should contain directories with the names of all your configured emulators, i.e Emulator.avd. Open the correct directory name and delete any zip files in this directory.....DO NOT DELETE any other files!

I'll probably write a .bat file to do this and save it on my desktop to save time in future.

It works for me so hope it helps someone?

Malky
 
Last edited:
Upvote 0

Malky

Active Member
Licensed User
Longtime User
Update! On my home PC they appear as zip files.

On another pc, they appear as img files.

Malky
 
Upvote 0
Top