IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    AndroidStudio安装问题

    ShelWee发表于 2014-02-18 11:33:54
    love 0

    androidStudio

    在用非管理员用户安装Android 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.

    之所以会出现这个问题是根本原因是我使用的不是管理员用户,其实只要用管理员用户操作,这个问题将不存在。下面提供的解决方案基于非管理员用户。

    Google得到Stack Overflow上大神的回答,打开 android-studio安装目录下的bin\idea.properties,比如 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

    将idea.config.path#去掉保存。如下

    #---------------------------------------------------------------------
    # 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

    这个方法解决了一些人的问题。但我的问题依然存在,索性将配置改成如下问题即可成功解决:

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



沪ICP备19023445号-2号
友情链接