How can I change the path to android\avd in my Android Studio

Ron D picture Ron D · Nov 9, 2016 · Viewed 25.3k times · Source

I have such exaption

InvalidPathException: Illegal char  at index 9: C:\Users\??????\.android\avd\1.avd (show balloon)

when trying to create emulator. Can I change the location of directory .android?

Answer

keipa picture keipa · Nov 9, 2016
  1. Open control panel
  2. Then go to System
  3. Then go to Change Environment Variables of the User
  4. Then click create a new environment variables
  5. Create a new variable named ANDROID_SDK_HOME
  6. Set its value to your Android directory, like C:/users/<username>/.android