问题:
flutter dart plugin安装失败后,Android Studio无法打开,卸载重装也不行。
解决方法:
完全卸载Android环境后重新安装
Android Studio 3.+完全卸载
//删除 应用安装文件
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*
//删除gradle
rm -Rf ~/.gradle
//卸载Android Virtual Devices(AVDs) and *.keystore.
rm -Rf ~/.android
//删除Android SDK Tools
rm -Rf ~/Library/Android*
Android Studio 4.+完全卸载
//删除 应用安装文件
rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/Google/AndroidStudio*
rm -Rf ~/Library/Logs/Google/AndroidStudio*
rm -Rf ~/Library/Caches/Google/AndroidStudio*
//删除gradle
rm -Rf ~/.gradle
//卸载Android Virtual Devices(AVDs) and *.keystore.
rm -Rf ~/.android
//删除Android SDK Tools
rm -Rf ~/Library/Android*