Android Studio 无法安装插件

AndroidStudio无法安装插件的原因分析

  • AndroidStudio版本问题

现在的插件一般只支持AndroidStudio2.1以上版本

  • 插件安装过程中出现 Software caused connection abort: recv failed , response: 200 OK

如图所示 具体步骤 Setting ==> Updates ==> Use secure connection [去除勾选]


SttingUpdates.png
  • 插件安装成功,但AndroidStudio重启后在Plugin插件列表里却没有!!!

  • 分析原因
这是我这次遇到问题!我先说说我的原因为了节省C盘珍贵的存储空间,我将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
  • 解决问题的关键

解决问题的关键在于 idea.system.path 目录的配置,改变了system目录导致无法读取系统信息无法找到plugin目录下的插件信息,做出如下更改即可,就是恢复system默认的缓存目录位置:

# 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

That's all ! Thanks Everybody!

你可能感兴趣的:(Android Studio 无法安装插件)