I cannot start a virtual devices on android SDK when I press the start button on AVD manager, this error shows on my screen:
Starting emulator for AVD \'AVD
For me the Environment variable was missing altogether. adding "ANDROID_AVD_HOME" as environment variable solved it. also a tip, enter the path without the "/.android/avd" part, as the application automatically adds this to it's search you don't need to specify them anymore. e.g. Env. Variable : ANDROID_AVD_HOME Value : C:\users\%USERNAME%\Androidapps
Android studio will for emulators under C:\users\%USERNAME%\Androidapps.android\avd
Or instead ANDROID_AVD_HOME enter ANDROID_SDK_HOME and Studio will work: Cannot start avd emulator on android studio 1.0
You'll just have to set the ANDROID_AVD_HOME environment variable and restart Android Studio.
Try changing the environment variable definition from ANDROID_AVD_HOME
to $ANDROID_AVD_HOME
.
just this command worked for me : sudo cp -R /root/.android $HOME
Just create a symlink:
ln -s /root/.android/ /home/user/.android/
This way you will solve the issue with the emulator because all sdk data is being written on /root/.android/