How to correctly install Android Studio on Mac

1. Download Android Studio

Official download address

2. Preprocessing-optional

If you have downloaded Android Studio in advance, you need to execute the following command in the terminal
to uninstall the main program

rm -Rf /Applications/Android\ Studio.app 
rm -Rf ~/Library/Preferences/AndroidStudio* 
rm ~/Library/Preferences/com.google.android.studio.plist 
rm -Rf ~/Library/Application\ Support/AndroidStudio* 
rm -Rf ~/Library/Logs/AndroidStudio* 
rm -Rf ~/Library/Caches/AndroidStudio* 

Delete project

rm -Rf ~/AndroidStudioProjects 

卸载Android Virtual Devices(AVDs) and *.keystore.

rm -Rf ~/.android 

Deleting Android SDK Tools Generally does not need to be deleted

rm -Rf ~/Library/Android* 

3. Installation

The core point to note is that you need to customize the installation settings and do not use the standard mode, which will cause certificate problems.
Through custom installation, you can solve the problems of android-sdk-license and android-sdk-preview-license

Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/a1137588003/article/details/132157408