配置路径 Android 工作室无效



我不确定其他人以前是否看过这个,但我几天前得到了一个 Windows 更新,自从我的安卓工作室无法打开以来。我收到的确切错误消息是:

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. 

当我在管理员模式下运行它时,它会再次完成安装。 我不想每次打开它时都必须这样做。

管理员身份运行Android Studio,它将创建idea.properties文件

该配置路径是否存在?

Android Studio基于IntelliJ。请参阅 IntelliJ Idea 属性,了解在何处修改 idea.properties 文件 - 以及修改 idea.config.path,如 IntelliJ Idea - 项目和 IDE 设置页面底部所述。

卸载

旧版本的Android Studio后,我在Windows 1.5笔记本电脑上安装AndroidStudio 1.5时遇到了同样的错误。为了解决这个问题,我按照Android开发者网站上的说明进行操作:http://tools.android.com/tech-docs/configuration。

首先,不要修改位于安装 Android Studio 的 bin 文件夹中的 idea.properties 文件。较旧的堆栈溢出帖子会告诉你修改那个idea.properites 文件,但你不应该在AndroidStudio 1.5中这样做。按照说明,我在 %USERPROFILE%\.{ 处创建了一个 idea.properties 文件。FOLDER_NAME}\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

要解决此问题,您需要以管理员身份打开它,您可以通过终端执行此操作,或者只需打开 Finder 文件夹,找到应用程序,右键单击并在 Windows 中以管理员身份打开,或者只是在 Mac 中打开

最新更新