我不确定是否有其他人之前看过这个,但是几天前我得到了一个Windows更新,自从我的android studio无法打开。 我得到的确切的错误信息是:
Config path C:/windows/system32/config/systemprofile/.AndroidSudio.3/config is invalid. If you have modified the 'idea.config.path' property please make sure it is correct, otherwise please re-install the IDE.
当我以pipe理员模式运行时,它会再次进行安装。 我不想每次打开它都要这样做。
以管理员身份运行Android Studio,它将创建idea.properties文件
而现在,即使在%USERPROFILE%.AndroidStudio2.1下创建了一个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}/.AndroidStudio2.1/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}/.AndroidStudio2.1/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.config.path}/plugins #--------------------------------------------------------------------- # Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes. #--------------------------------------------------------------------- idea.log.path=${idea.system.path}/log
错误仍然没有消失。
这个配置路径是否存在?
Android Studio基于IntelliJ。 请参阅IntelliJ Idea Properties来修改您的idea.properties文件的位置,并按照IntelliJ Idea – Project and IDE Settings页面底部所述修改idea.config.path 。
我卸载旧版本的Android Studio后,在我的Windows 10笔记本电脑上安装了AndroidStudio 1.5时出现同样的错误。 为了解决这个问题,我遵循了Android开发者网站的说明: http : //tools.android.com/tech-docs/configuration 。
首先,不要修改位于安装Android Studio的bin文件夹中的idea.properties文件。 旧的堆栈溢出帖子会告诉你修改这个idea.properites文件,但你不应该这样做的AndroidStudio 1.5。 按照说明操作,我在%USERPROFILE%\。{FOLDER_NAME} \ idea.properties创建了一个idea.properties文件。 如果您安装了AndroidStudio 1.5,则{FOLDER_NAME}应该是{AndroidStudio1.5}。 我的idea.properties文件的内容如下:
#--------------------------------------------------------------------- # IDEA can copy library .jar files to prevent their locking. # By default this behavior is enabled on Windows and disabled on other platforms. # Uncomment this property to override. #--------------------------------------------------------------------- # idea.jars.nocopy=false #--------------------------------------------------------------------- # The VM option value to be used to start a JVM in debug mode. # Some JREs define it in a different way (-XXdebug in Oracle VM) #--------------------------------------------------------------------- idea.xdebug.key=-Xdebug #----------------------------------------------------------------------- # Change to 'enabled' if you want to receive instant visual notifications # about fatal errors that happen to an IDE or plugins installed. #----------------------------------------------------------------------- idea.fatal.error.notification=disabled #--------------------------------------------------------------------- # 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 #--------------------------------------------------------------------- # 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}/.AndroidStudio1.5/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}/.AndroidStudio1.5/system/log