1、卸载Android Studio,在终端(terminal)执行以下命令:
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*
2、删除Projects
rm -Rf ~/AndroidStudioProjects
3、删除gradle
rm -Rf ~/.gradle
4、卸载Android Virtual Devices(AVDs) and *.keystore.
rm -Rf ~/.android
5、删除Android SDK Tools
rm -Rf ~/Library/Android*
6、打包命令
./gradlew assembleRelease
7、如果遇到./gradlew: Permission denied
chmod +x gradlew
网友评论