android studio 安装运行时Config path invalid 问题

安装好studio后,出现如下弹窗

Config path ‘C:\Users\Administrator\.AndroidStudioPreview\config’ is invalid.
If you have modified the ‘idea.config.path’ property please make sure it is correct,
otherwise please re-install the IDE.


根本是由于无权限访问这个目录或者这个目录不存在!


解决方法:

打开 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

在C盘新建一个目录android_studio_data         然后把${user.home} 换成C:\android_studio_data   然后所在行的idea前的#去掉!

这样就ok了

如下:


#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.config.path=C:/android_studio_data/.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=C:/android_studio_data/.AndroidStudioPreview/system
参考:

http://wrox.cn/article/1010703/

你可能感兴趣的:(androrat)