AndroidStudio無(wú)法安裝插件的原因分析
-
AndroidStudio版本問(wèn)題
現(xiàn)在的插件一般只支持AndroidStudio2.1以上版本
-
插件安裝過(guò)程中出現(xiàn) Software caused connection abort: recv failed , response: 200 OK
如圖所示 具體步驟 Setting ==> Updates ==> Use secure connection [去除勾選]
SttingUpdates.png
-
插件安裝成功,但AndroidStudio重啟后在Plugin插件列表里卻沒(méi)有I砼怠U旄摺!
分析原因
這是我這次遇到問(wèn)題!我先說(shuō)說(shuō)我的原因?yàn)榱斯?jié)省C盤珍貴的存儲(chǔ)空間,我將Android Studio ==> bin ==> idea.properties 文件中的配置信息做了更改,改變了緩存空間目錄位置
idea.config.path=F:/Developed/AndroidDeveloped/Cache/.AndroidStudio/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.system.path=F:/Developed/AndroidDeveloped/Cache/.AndroidStudio/system
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.plugins.path={idea.system.path}/plugins
idea.plugins.path=F:/Developed/AndroidDeveloped/Cache/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.log.path=F:/Developed/AndroidDeveloped/Cache/log
#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE should provide code assistance for.
# The larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. Remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#---------------------------------------------------------------------
idea.max.intellisense.filesize=2500
解決問(wèn)題的關(guān)鍵
解決問(wèn)題的關(guān)鍵在于 idea.system.path 目錄的配置,改變了system目錄導(dǎo)致無(wú)法讀取系統(tǒng)信息無(wú)法找到plugin目錄下的插件信息,做出如下更改即可,就是恢復(fù)system默認(rèn)的緩存目錄位置:
# Use ${idea.home.path} macro to specify location relative to IDE installation home.
# Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value.
# Note for Windows users: please make sure you're using forward slashes (e.g. c:/idea/system).
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.config.path=F:/Developed/AndroidDeveloped/Cache/.AndroidStudio/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.system.path=F:/Developed/AndroidDeveloped/Cache/.AndroidStudio/system
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.plugins.path={idea.system.path}/plugins
idea.plugins.path=F:/Developed/AndroidDeveloped/Cache/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.log.path=F:/Developed/AndroidDeveloped/Cache/log
#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE should provide code assistance for.
# The larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. Remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#---------------------------------------------------------------------
idea.max.intellisense.filesize=2500