27

I'm getting this error:

Config path'C:\Program Files(x86)\Android\android-studio\config' is invalid.  
If you have modified the 'idea.config.path' property please make sure it is correct,      
otherwise please re-install the IDE.

I even re-installed the IDE, however, it doesn't work!

How to resolve this error?

Jake1164
  • 12,291
  • 6
  • 47
  • 64
Tarun Pothulapati
  • 572
  • 1
  • 5
  • 13
  • Bug report: [Config file reported as invalid when installed for all users](https://code.google.com/p/android/issues/detail?id=61067) – Edward Brey Oct 14 '13 at 14:41

13 Answers13

38

Open this file C:\Program Files (x86)\Android\android-studio\bin\idea.properties.

You will see something like this

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

remove the # sign from those specific options and save it.

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

restart the android-stuido again.

karu
  • 519
  • 4
  • 8
20

Run as administrator. The default locations for \config and \system are under c:\Program Files, which Windows won't let common software write to. Karu's solution moves the \config and \system folders to the current users directory, which is fair-er game.

user2597608
  • 308
  • 1
  • 4
11

I try not to run software as Administrator unless it's really necessary and in this case it's not.

Do as @karu says, but go ahead and uncomment the top 4 paths in the idea.properties file to stop the next error that you would get about an invalid System path and so on...

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

#---------------------------------------------------------------------
# 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}/.AndroidStudioPreview/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}/.AndroidStudioPreview/system/log

Save this file and restart Android Studio and you should have no more errors.

Note: I imagine that they will solve this issue in future versions but this is part of the fun you get for joining in on a project still in Beta (currently v0.2)

seebigs
  • 869
  • 8
  • 9
4

uncomment the idea.config.path and what ever the options available in the C:\Program Files (x86)\Android\android-studio\bin\idea.properties file

karu
  • 519
  • 4
  • 8
4

I had this issue, just wait 5 minutes and it will start properly.

Khalid Taha
  • 3,183
  • 5
  • 27
  • 43
3

I had this issue and the reason for my issue was my hard disk has run out of free space (installing new android versions had filled up my hard disk without me knowing :) ) . cleaning up the hard and getting some free space fixed my issue

Chamila Adhikarinayake
  • 3,588
  • 5
  • 25
  • 32
2

My Problem was that my laptop storage was full, once the space was freed, this error got resolved.

Mathieu VIALES
  • 4,526
  • 3
  • 31
  • 48
Sana
  • 49
  • 5
1

Just run Android Studio as administrator .......

user1631100
  • 107
  • 2
  • 12
0

Uninstall Android Studio and reinstall using the default settings (install for the current user only).

Android Studio is only half baked, and support for sharing an installation across multiple users is among the features that are still in the oven.

Note: To work around another bug with multi-user installation, you have to "help" the uninstaller by manually deleting C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Android Studio. Otherwise, after the reinstall, you'll have two sets of Start Menu icons.

Edward Brey
  • 40,302
  • 20
  • 199
  • 253
0

Just Run it as Administrator

issue was about permissions

Worked for me :)

Aks4125
  • 4,522
  • 4
  • 32
  • 48
0

After deleting the temp file I solved the same problem.

Just go to Run, type "%temp%", hit enter, and delete all the files under the Temp directory.

Pang
  • 9,564
  • 146
  • 81
  • 122
-1

Configure your shortcut (Advanced options) to run always as administrator , you 'll save some seconds each time.

-1

I searched for different ways to fix this issue with android studio, and I've found the solution.

My problem was that Windows Accounts Manager locked my profile folder to do anything, just change permissions to that folder and it will work

Just do this in your profile folder and select your user

Just do this in your profile folder and select your user

After this, run Android Studio, and voila! Hope this help!