# Deletes the Android Studio application
# Note that this may be different depending on what you named the application as, or whether you downloaded the preview version
rm -Rf /Applications/Android\ Studio.app
# Delete All Android Studio related preferences
# The asterisk here should target all folders/files beginning with the string before it
rm -Rf ~/Library/Preferences/AndroidStudio*
# Deletes the Android Studio's plist file
rm -Rf ~/Library/Preferences/com.google.android.*
# Deletes the Android Emulator's plist file
rm -Rf ~/Library/Preferences/com.android.*
# Deletes mainly plugins (or at least according to what mine (Edric) contains)
rm -Rf ~/Library/Application\ Support/AndroidStudio*
# Deletes all logs that Android Studio outputs
rm -Rf ~/Library/Logs/AndroidStudio*
# Deletes Android Studio's caches
rm -Rf ~/Library/Caches/AndroidStudio*
# Deletes older versions of Android Studio
rm -Rf ~/.AndroidStudio*
5 回答
我的Macbook Pro上也遇到了同样的问题 . 我采取了这些非常简单的步骤并重新安装了Android Studio .
** Link Contains Images, look if facing any problem.
这些非常简单的步骤可以解决您的问题 .
类型"Command+option+Space Bar"
类型"Android Studio"
点击搜索框正下方的'+'按钮 .
将出现一个新栏"Kind" "any"点击"kind" - >其他 - >搜索"system file"并通过勾选标记来选择 . 然后单击确定 .
然后从下拉菜单中选择"are included"!
然后,您需要删除大量系统文件,以完成任何应用程序的完全卸载 .
单击"command+A"以选择所有文件并查看文件删除是否还包含一些视频文件 . 然后单击"command + Delete"
清空垃圾箱 . 完成
在终端中执行这些命令(不包括带有主题标签的行 - 它们是注释):
如果你想删除所有 projects :
删除gradle相关文件(缓存和包装器)
使用以下命令删除所有 Android Virtual Devices (AVD)和密钥库 .
Note :此文件夹也被其他Android IDE使用,因此如果您仍在使用其他IDE,则可能不想删除此文件夹)
删除Android SDK工具
仿真器控制台验证令牌
感谢那些对此答案进行评论/改进的人!
注意事项
rm
的标志区分大小写1(与大多数其他命令一样),这意味着f
标志必须为小写 . 但是,r
标志也可以大写 .rm
的标志可以组合在一起或分开 . 它们不必合并 .标志表示的内容
r
标志表示rm
命令应该 -f
标志表示rm
命令应该 -在终端中运行以下命令:
要删除所有项目:
如果您不在任何其他地方使用gradle,您也可以删除gradle文件:
因为.gradle文件夹包含不再需要的缓存工件 .
Simon单独列出的一些文件也可以使用类似下面的命令找到,但是有一些关于彻底性的额外保证,并且没有使用rm -rf和通配符的鲁莽行为:
另外不要忘记SDK,它现在与应用程序分开,并且〜/ .gradle /(参见vijay的答案) .