原文鏈接:http://m.blog.csdn.net/blog/hnust_xiehonghao/46127775
1. 問題描述:
安裝好Android Studio后,啟動時彈出如下信息:
Config path ‘C:\Users\Administrator\.AndroidStudio1.5\config’ is invalid.
If you have modified the ‘idea.config.path’ property please make sure it is correct,
otherwise please re-install the IDE.
2.原因分析:
程序無權限訪問這個目錄或者這個目錄不存在!
3.解決方法:
打開 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}/.AndroidStudio1.5/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}/.AndroidStudio1.5/system
....etc
在C盤新建一個目錄android_studio_data, 然后把${user.home} 換成C:\android_studio_data, 然后所在行的idea前的#去掉(如果沒有以上內容,直接添加以下內容,路徑可自行設置) 。
添加或修改如下:
#---------------------------------------------------------------------
# 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/.AndroidStudio1.5/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/.AndroidStudio1.5w/system