2016-02-14 64 views
1

我不確定是否有其他人以前見過這個,但是我幾天前得到了一個Windows更新,並且自從我的android工作室無法打開。我得到的確切錯誤信息是:配置路徑Android工作室無效

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. 

當我以管理員模式運行它時,它會再次進行安裝。 我不想每次打開它時都要這樣做。

+0

可能重複[是否可以在另一個地方分配這些文件夾?](http://stackoverflow.com/questions/32759785/is-it-possible-to-allocate-these-folders-in-another-地方) –

回答

4

運行Android工作室擔任管理員,它會創建idea.properties文件

+0

這應該是答案。 – shamcs

+0

但是,這隻允許以管理員身份運行? –

+1

@DineshVG您只需首次以管理員身份運行Android Studio。 –

0

我卸載舊版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 
1

而現在,即使在創建後idea.properties下文件% USERPROFILE%.AndroidStudio2.1以下內容,

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

錯誤仍然沒有消失。

相關問題