乐闻世界logo
搜索文章和话题

How to completely uninstall Android Studio on Mac?

1个答案

1

To completely uninstall Android Studio on Mac, follow these detailed steps:

1. Delete the Android Studio Application

First, drag the Android Studio application to the Trash. It is located in the Applications folder.

2. Delete Android Studio Settings and Configuration Files

After uninstalling the application, you must also remove its configuration and settings files. These files are typically hidden in multiple locations within your home directory:

  • Preferences and Library Files Open Finder, click on the menu bar's "Go" > "Go to Folder," then enter the following paths and delete the corresponding files or folders:
    • ~/Library/Preferences/com.google.android.studio.plist
    • ~/Library/Application Support/AndroidStudio* (the asterisk denotes different version numbers, which may include multiple folders)
    • ~/Library/Caches/AndroidStudio*
    • ~/Library/Logs/AndroidStudio*

3. Delete Android SDK Tools

If you installed Android Studio using the default path, the Android SDK may reside in a hidden folder within your home directory. Delete it to free up space:

  • Open Finder, click on the menu bar's "Go" > "Go to Folder," then enter ~/Library/Android/sdk and delete this folder.

4. Delete Android Virtual Devices (AVDs) and Emulators

If you created virtual devices with Android Studio, delete them as well:

  • In Finder, navigate to ~/.android/ and remove all related files under the avd/ folder.

5. Empty the Trash

After completing the above steps, empty the Trash to ensure all related files are completely removed.

Example

For instance, if you regularly use Android Studio for Android app development, over time you may have installed multiple versions of Android Studio and Android SDK, occupying substantial disk space. When you decide to stop using Android Studio and wish to free up this space, merely deleting the application itself is insufficient because configuration files, SDK, and generated virtual devices may still remain on your system. Following these steps will help you thoroughly remove all components, restore your system to a clean state, and free up space for installing other software.

These steps ensure that Android Studio and all its components are completely removed, avoiding common issues of incomplete uninstallation that occur when only the application is deleted. This is crucial for maintaining system cleanliness and optimizing performance.

2024年7月23日 16:38 回复

你的答案