Having this kind of problem when trying to use AVD in Android SDK Windows?
emulator: ERROR: unknown virtual device name: ‘Android2.2-APILevel8′
emulator: could not find virtual device name: ‘Android2.2-APILevel8′
Fear not, I have found a solution.
The problem caused by the way Android SDK read the User directory. Directory .android (the place for setting and AVD kept) are read from different places. The method first read from the registry and the other one read from the Environtment Variable. For the tools to function, we need to create an NTFS Junction for the directory. Directory .android remains on one location but is considered by the system to be in two places. Therefore it doesn’t matter where Android SDK access the configuration, it’s still the same directory.
Here’s how we fix it :
Users Default directory: C:\User\Rudra (you can change this to your user name)
Users directory which has been moved (so it might affect Envoirontment Variable and Registry): D:\Rudra
From command prompt (Start Menu > Accessories > Command Prompt) :
C:\Users\Rudra>mklink
Creates a symbolic link.
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symbolic link. Default is a file
symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link specifies the new symbolic link name.
Target specifies the path (relative or absolute) that the new link
refers to.
C:\Users\Rudra>mklink /J .android D:\Rudra\.android
Junction created for .android <<===>> D:\Rudra\.android
Look in directory C:\Users\Rudra, there will be a symbolic link .android that point to D:\Rudra\.android.
Now your Android SDK should be functioning correctly. Have fun!
No related posts.