我收到这个错误:
Config path'C:\Program Files(x86)\Android\android-studio\config' is invalid.
If you have modified the 'idea.config.path' property please make sure it is correct,
otherwise please re-install the IDE.
Run Code Online (Sandbox Code Playgroud)
我甚至重新安装了IDE,但它不起作用!
如何解决此错误?
小智 37
打开此文件C:\ Program Files(x86)\ Android\android-studio\bin\idea.properties.
你会看到这样的东西
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
#idea.config.path=${user.home}/.AndroidStudioPreview/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
#idea.system.path=${user.home}/.AndroidStudioPreview/system
....etc
Run Code Online (Sandbox Code Playgroud)
从这些特定选项中删除#符号并保存.
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
idea.config.path=${user.home}/.AndroidStudioPreview/config
....etc
Run Code Online (Sandbox Code Playgroud)
再次重启android-stuido.
小智 20
以管理员身份运行.\ config和\ system的默认位置在c:\ Program Files下,Windows不允许常用软件写入.Karu的解决方案将\ config和\ system文件夹移动到当前用户目录,这是更公平的游戏.
小智 11
我尽量不以管理员身份运行软件,除非它确实是必要的,在这种情况下它不是.
像@karu一样说,但是继续并取消注释idea.properties文件中的前4个路径,以停止下一个关于无效系统路径的错误,依此类推......
C:\ Program Files(x86)\ Android\android-studio\bin\idea.properties
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
idea.config.path=${user.home}/.AndroidStudioPreview/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
idea.system.path=${user.home}/.AndroidStudioPreview/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=${user.home}/.AndroidStudioPreview/config/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.log.path=${user.home}/.AndroidStudioPreview/system/log
Run Code Online (Sandbox Code Playgroud)
保存此文件并重新启动Android Studio,您应该没有更多错误.
注意:我想他们将在未来的版本中解决这个问题,但这是加入仍处于Beta版本的项目(目前为v0.2)的乐趣的一部分
小智 4
取消注释idea.config.path以及 C:\Program Files (x86)\Android\android-studio\bin\idea.properties 文件中可用的选项
| 归档时间: |
|
| 查看次数: |
28771 次 |
| 最近记录: |