之前android studio也可以打开,也做过几个程序,但是昨天在一个程序里加了一个csv的文件,上面提示说可以下载一个plugin,点进去了之后重启就一直卡死在启动页面了,正常的退出也退不出去,只能强制退出,昨天有尝试了几个方法
你是mac的吗?执行下面的命令
# 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*
rm -Rf ~/Library/Preferences/Google/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*
rm -Rf ~/Library/Application\ Support/Google/AndroidStudio*
# Deletes all logs that Android Studio outputs
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Logs/Google/AndroidStudio*
# Deletes Android Studio's caches
rm -Rf ~/Library/Caches/AndroidStudio*
# Deletes older versions of Android Studio
rm -Rf ~/.AndroidStudio*
估计是插件不兼容导致的,可以去.gradle 文件中找到plugins文件夹,找到下载的插件删除之后试试。
Windows的话,你需要把插件清掉
位置:
C:\Users\Admin\AppData\Roaming\Google\AndroidStudio2021.3\plugins
或者整个C:\Users\Admin\AppData\Roaming\Google\AndroidStudio2021.3删掉也可以