配置路径Android studio无效

时间:2016-02-14 11:02:45

标签: java android windows android-studio windows-10

我不确定是否有其他人之前见过这个,但我几天前得到了一个Windows更新,因为我的android工作室无法打开。我得到的确切错误信息是:

var launchRequest = new RunInstancesRequest()
    {
        ImageId = amiID,
        InstanceType = type,
        MinCount = 1,
        MaxCount = 1,
        SecurityGroupIds = groups
    };
    var launchResponse = ec2Client.RunInstances(launchRequest);
    var instances = launchResponse.Reservation.Instances;
    var myInstance = instances.First();

当我在管理员模式下运行时,它会再次进行安装。  我不希望每次打开它都要这样做。

3 个答案:

答案 0 :(得分:6)

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

答案 1 :(得分:0)

该配置路径是否存在?

Android Studio基于IntelliJ。请参阅IntelliJ Idea Properties,了解修改idea.properties文件的位置 - 并修改 idea.config.path ,如IntelliJ Idea - Project and IDE Settings页面底部所述。

答案 2 :(得分:0)

我在卸载旧版Android Studio后在Windows 10笔记本电脑上安装AndroidStudio 1.5后出现了同样的错误。为了解决这个问题,我按照Android开发者网站上的说明进行操作:W3 HTML Validator

首先,不要修改位于安装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