Home > Article > System Tutorial > How to solve the problem that the Android emulator cannot be deleted and an error message appears under Ubuntu?
In the Ubuntu system, many users will build several more simulators due to testing needs. In order not to occupy system memory resources, these unused simulators will be deleted after completing the test. However, during the deletion process, it appears that they cannot be deleted. problem, the system prompts "the android "XXX" virtule device is currently..." and shows that it is in use and cannot be deleted. What should I do if I encounter this problem? don’t worry! The editor below will bring you the solution to the problem of "the android "XXX" virtule when deleting the emulator fails under Ubuntu! Let's take a look!
The main reason may be due to the storage location problem.
Find the .android folder in your $HOME directory.
In .android there should be a avd folder
In the avd folder should be one or multiple .ini file and a corresponding *.avd virtual device folder.
Delete both the .ini file and the .avd folder you want to get rid of.
Return to the Android sdk and AVD manager.
The way is to find the two files under the ".android" folder: xxx.avd and xxx.ini. If you find them, just delete them!
Step 1: Find the file
The key is how to find it. I searched for a long time and couldn't find it, so I just used the command to find it: find .android
Here you can see the simulator to be deleted:
Step 2: Delete the file
rm .android/avd/aaaa.ini
rm -r .android/avd/aaaa.avd
Note that -r is added to the second command as if aaaa.avd is a directory
third step:
Is the refresh in android virtual Device Manager successful?
The above is the detailed content of How to solve the problem that the Android emulator cannot be deleted and an error message appears under Ubuntu?. For more information, please follow other related articles on the PHP Chinese website!