I'm brand new to Android development and Eclipse so I have just set it all up and I am attempting the Hello World tutorial. Sadly when I try and run the program I get the following error:
PANIC: Could not open: C:\Users\Nathan Smith.android/avd/Droid_4.0.3.ini
I have heard that you should avoid spaces in these paths. Is the space in the name where the problem is? If so how do I go about changing it?
If anyone could help me out with this that would be grand.
By the way I also noticed that my SDK path is C:\Users\Asus Laptop\android-sdks\ should I change this to the same user? This was not intentional, is there an easy way of me changing this to the right user?
This has been asked a few times already, try this:
Create a environment variable called: ANDROID_SDK_HOME and set it to
C:\Users\Administrator
Open Eclipse > Window > Preferences and click
in Run/Debug and String Substitution
Add a new variable called:
user.home and set it to C:\Users\Administrator
Create an AVD and run
it.
Android Emulator can't start, 'cause of wrong folder
android emulator error:[2011-08-02 11:14:01 - Emulator] PANIC: Could not open: C:\Users\hallo\.android/avd/myemu.ini
I have problem in a emulator
A simple solution,
Create your avd with normal steps. e.g. avd name is Nexus_One. You will see Nexus_One folder and Nexus_One.ini file at D:\Users\Nathan Smith\.android\avd
Copy Nexus_One.ini to C:\Users\Nathan Smith\.android\avd
Try running avd through AVD Manager. It will start the emulator.
Reason being it works, if you read ini file, you will find path variable as below,
path=D:\Users\Nathan Smith\.android\avd\Nexus_One.avd
path.rel=avd\Nexus_One.avd
So, when you start emulator, it check the ini and tries to start emulator from path mentioned in path variable.
Hope this solves your problem.
Find the .android folder on your cpu. You can find it by going to Window -> Preferences -> Android -> Build, and see the "Default debug keystore:" path location.
After you find it, move the .android folder to your user root directory
- which may be "C:\Users\Nathan Smith\" in your case.
I had the same problem, but now its fixed.
Go to Windows in Eclipse, Windows->preference->run/debug->stringSubstitution-> add variable name as "user.home" Then the value will be your profile path
Example: mine is C:\users\sriramk\.android
Now open the default .android path, copy the content, and paste that content into
C:\users\sriramk\.android. Restart Eclipse and now the emulator will open.
The simple solution is to create a symbolic link between your home directory and destination .android directory. The problem is that emulator looks for files on in your home directory.
mklink /D Link Target
Probably you can copy .android dir or change a setting.
The AVD manager normally uses the user's profile directory to store AVD files.
However it failed to find the default profile directory.
To fix this, please set the environment variable ANDROID_SDK_HOME to a valid path such as "".
Step 1. (Windows 7 Only... 64-bit version Tested) Go to your start menu, then open the Control Panel.Click System and Security, click System, then open up the Advanced System Settings (on the left). Go to the Advanced Tab, then click Environment Variables.Check your user variables.
If you don't, find A variable named ANDROID_SDK_HOME with the Value, click new. In the Variable Name box, type in "ANDROID_SDK_HOME" (Without quotes).
In the Variable Value, type in something like c:/Users/jorge/AppData/Local/Android/Android-sdk. Click OK.Then click OK. Click OK again. Close the Control Panel and restart your computer.
Try Running SDK or AVD Manager(s) again. Create an AVD and run it.
Home Folder Redirection To UNC / AVD Shows UNC Path
If you're unfortunate to have network UNC path mapped as your home directory using Windows Folder Redirection then AVD will fail to start.
You should also have a normal user directory under C:\Users, which contains non-mapped stuff. The trick is for Android SDK to use this instead. Similar to other answers, you need to set ANDROID_SDK_HOME user environment variable to your C:\ based home directory.
For example:
ANDROID_SDK_HOME = C:\Users\MyUserName
Restart Eclipse.
In my hunt for a resolution, I found this answer which gives a great performance increase: https://stackoverflow.com/a/19338671/1554386
I had the same problem, the issue seemed to be low disk space on the drive containing the emulator files (C).
Related
I am getting this error when i start an avd in android studio.
Any help would be appreciated. And also unable to start android studio except from terminal.
PANIC: HOME is defined but could not find Nexus_4_API_21.ini file in $HOME/.android/avd
(Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME/.android/avd and $HOME/.android/avd)
In my case, I had especially installed Android Studio on my D: drive (for space reasons). On my installation, the avd directory was located in D:\MyInstall\.android\.avd
The solution for me was to define a Windows environment variable (user variable) with Variable name: ANDROID_SDK_HOME and Variable value: D:\MyInstall
I restarted Android Studio and the emulator worked.
This appears to be a bug in the Android Studio installer, since I explicitly stated the D: location in the install wizard. The installer should probably have set this variable.
Set the variable ANDROID_SDK_HOME to < home directory > / .android / .avd
For creating this variable under Win7, please go to control panel -> system -> advanced parameters -> environment variables. In the "user variables" block, Click on "new". Please fill the variable name and its value. Close all dialog by clickin on button "OK" and launch android studio.
Go through this link for more solutions if the above one doesn't work out for you.
In my case, I set the ANDROID_AVD_HOME environment variable to "C:\Users\DELL.android\avd".
If the error still persists try running android studio as administrator in windows, it worked for me.
I also came across to the same problem while launching Android emulator launch.
PANIC: HOME is defined but could not find testAvd.ini file in $HOME\.android\avd
(Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME\.android\avd and $HOME\.android\avd)
There are two solutions I found for the above problem.
Goto run and type regedit for windows and check the path set in the registry variables in under
HKEY_LOCAL_MACHINE->Android Studio
And check the .android\avd referring to the location of your testAvd.ini location. If not, either correct it or put your ini file at the UserSettingsPath present in your disc location.
This solved the problem for me. Just follow the link. It explains why it happens and how to get around it. :)
http://kalpa-gunarathna.blogspot.com/2015/04/android-emulator-not-starting-on-ubuntu.html
I'm brand new to Android development and Eclipse so I have just set it all up and I am attempting the Hello World tutorial. Sadly when I try and run the program I get the following error:
PANIC: Could not open: C:\Users\Nathan Smith.android/avd/Droid_4.0.3.ini
I have heard that you should avoid spaces in these paths. Is the space in the name where the problem is? If so how do I go about changing it?
If anyone could help me out with this that would be grand.
By the way I also noticed that my SDK path is C:\Users\Asus Laptop\android-sdks\ should I change this to the same user? This was not intentional, is there an easy way of me changing this to the right user?
This has been asked a few times already, try this:
Create a environment variable called: ANDROID_SDK_HOME and set it to
C:\Users\Administrator
Open Eclipse > Window > Preferences and click
in Run/Debug and String Substitution
Add a new variable called:
user.home and set it to C:\Users\Administrator
Create an AVD and run
it.
Android Emulator can't start, 'cause of wrong folder
android emulator error:[2011-08-02 11:14:01 - Emulator] PANIC: Could not open: C:\Users\hallo\.android/avd/myemu.ini
I have problem in a emulator
A simple solution,
Create your avd with normal steps. e.g. avd name is Nexus_One. You will see Nexus_One folder and Nexus_One.ini file at D:\Users\Nathan Smith\.android\avd
Copy Nexus_One.ini to C:\Users\Nathan Smith\.android\avd
Try running avd through AVD Manager. It will start the emulator.
Reason being it works, if you read ini file, you will find path variable as below,
path=D:\Users\Nathan Smith\.android\avd\Nexus_One.avd
path.rel=avd\Nexus_One.avd
So, when you start emulator, it check the ini and tries to start emulator from path mentioned in path variable.
Hope this solves your problem.
Find the .android folder on your cpu. You can find it by going to Window -> Preferences -> Android -> Build, and see the "Default debug keystore:" path location.
After you find it, move the .android folder to your user root directory
- which may be "C:\Users\Nathan Smith\" in your case.
I had the same problem, but now its fixed.
Go to Windows in Eclipse, Windows->preference->run/debug->stringSubstitution-> add variable name as "user.home" Then the value will be your profile path
Example: mine is C:\users\sriramk\.android
Now open the default .android path, copy the content, and paste that content into
C:\users\sriramk\.android. Restart Eclipse and now the emulator will open.
The simple solution is to create a symbolic link between your home directory and destination .android directory. The problem is that emulator looks for files on in your home directory.
mklink /D Link Target
Probably you can copy .android dir or change a setting.
The AVD manager normally uses the user's profile directory to store AVD files.
However it failed to find the default profile directory.
To fix this, please set the environment variable ANDROID_SDK_HOME to a valid path such as "".
Step 1. (Windows 7 Only... 64-bit version Tested) Go to your start menu, then open the Control Panel.Click System and Security, click System, then open up the Advanced System Settings (on the left). Go to the Advanced Tab, then click Environment Variables.Check your user variables.
If you don't, find A variable named ANDROID_SDK_HOME with the Value, click new. In the Variable Name box, type in "ANDROID_SDK_HOME" (Without quotes).
In the Variable Value, type in something like c:/Users/jorge/AppData/Local/Android/Android-sdk. Click OK.Then click OK. Click OK again. Close the Control Panel and restart your computer.
Try Running SDK or AVD Manager(s) again. Create an AVD and run it.
Home Folder Redirection To UNC / AVD Shows UNC Path
If you're unfortunate to have network UNC path mapped as your home directory using Windows Folder Redirection then AVD will fail to start.
You should also have a normal user directory under C:\Users, which contains non-mapped stuff. The trick is for Android SDK to use this instead. Similar to other answers, you need to set ANDROID_SDK_HOME user environment variable to your C:\ based home directory.
For example:
ANDROID_SDK_HOME = C:\Users\MyUserName
Restart Eclipse.
In my hunt for a resolution, I found this answer which gives a great performance increase: https://stackoverflow.com/a/19338671/1554386
I had the same problem, the issue seemed to be low disk space on the drive containing the emulator files (C).
I want to write an Android app and I've started this morning by loading JDK, eclipse, SDK etc, all from the adt-bundle-windows-x86_64-20130219 from http://developer.android.com.
The issue for me right now:
[2013-02-27 13:36:26 - Test2] Android Launch!
[2013-02-27 13:36:26 - Test2] adb is running normally.
[2013-02-27 13:36:26 - Test2] Performing com.example.test2.MainActivity activity launch
[2013-02-27 13:37:27 - Test2] Launching a new emulator with Virtual Device 'droidX2'
[2013-02-27 13:37:27 - Emulator] PANIC: Could not open: droidX2
I've been sifting though posts on the web all morning about AVD and I haven't seen one that didn't involve the path being messed up and the .ini not found. I don't think I've got a path issue. AVD is looking for files on D:\USERS\XXX\.android\avd and that's where the files are. So don't understand why the emulator can't open.
I've done the most basic things like remove and re-install everything, read the notes at orace etc. Basically I'm stuck. Any suggestions here?
adt-bundle-windows-x86_64-20130219 was what I loaded on Windows 7 (32bit).
I'd settle for testing on the mobile that's connected to the PC but I can't get that to work either!
Any direction appreciated.
This has been asked a few times already, try these:
Create a environment variable called: ANDROID_SDK_HOME and set it to
C:\Users\Administrator Open Eclipse > Window > Preferences and click
in Run/Debug and String Substitution Add a new variable called:
user.home and set it to C:\Users\Administrator Create an AVD and run
it.
Original answer by Colin
an android project member says here:
As a work-around, you can define the environment variable
ANDROID_SDK_HOME to point to the directory containing your .android
directory. The emulator and SDK Manager will pick it up properly.
verify that The location in which the avd was searched from is different from where it is actually created. Take a look at the screenshot below for more information.
ANOTHER OPTION: Symlinking...
In a command prompt (with admin privileges), change directory ("cd") to "C:\Users\YourUserName.android" and then use the following command to create a symlink to the avd directory (notice the direction of the slashes):
mklink /D avd D:\_MyLibrariesDir\.android\avd
Where "_MyLibrariesDir" is the directory that your libraries (photos, documents, etc) folders are located.
And you're done!
Explanation: This has the same effect as the ANDROID_SDK_HOME option except that you can now browse to [C:\Users\YourUserName\.android\avd\*] and [D:_MyLibrariesDir\.android\avd\*] and both will take you to the same spot.
This differs from a shortcut in that shortcuts do not act as directories, so if you just had a shortcut to the "avd" folder, you could not go to "C:\Users\YourUserName\.android\avd*" as it would produce a file not found error and if you tried to click on an avd shortcut file it would take you to [D:_MyLibrariesDir\.android\avd\*] instead of keeping you on the C drive. Symlinks act a bridge between locations in a way that is transparent to user and software. Quite handy :)
I fixed the AVD Panic issue by running Eclipse as an administrator.
On Ubuntu check the current user if you run eclipse as root (sudo) eclipse could NOT find the /root/.android set the user home
user.home /home/<user>/
and copy the AVD files into the new directory than changes the privileges
cd /home/<user>/
chgrp <user> -R .android
chgrp <user> -R .android
Simply if nothing works for you, just copy the folder avd which you could find in your .android folder to C:\Users\<user name>\.android.
Pls check once in Ur ".android" folder, another/duplicate ".android" folder might have been created. If "YES" is Ur answer then do this thing because in my case that thing was happened.
Simply I just kept only the latest ".android" folder in this directory "C:\Users\USER NAME\" (removed the duplicated one) and then emulator started working for me.
Cheers
try to add new windows admin user with English language only
it worked for me
the user name should be in English letters
Found a simple way to make it work - worth trying:
1. If you do not have it yet - create a new AVD with the problematic name (in this case droidX2) if you see an overwrite warning - overwrite it.
2. Delete the new AVD you just created in step 1.
3. If you have another AVD it's OK, if not - create one.
4. Retry running the Eclipse project as an Android application - now it should run
Setting the ANDROID_SDK_HOME environment variable alone works fine for Win7 and earlier but did not help me on Win8.
For poor tortured souls using the piece of crap which is Windows 8, go to wherever you've installed the Android SDK (e.g. C:\SDK\Android or C:\Users\JoeCitizen\AppData\Local\Android\android-sdk) and make sure both AVD Manager.exe and SDK Manager.exe are set to run as Administrator for all users. Once I did that it worked fine.
Yet another deceptive problem-which-shouldn't-be-a-problem caused by the complete fail which is permission management circa Windows 8.
Using Windows 7, Eclipse, Android SDK tools 23.0.4
First time I followed the exact instruction on http://developer.android.com/training/index.html
I got the error "PANIC: could not open.." whenever 'Start' emulator.
Solution: System property popup/Enviroment Variables/ System variables, Added new entry
name="ANDROID_SDK_HOME", value = "D:\DATA\Users\ThisUser\"
Then it starts work!
"D:\DATA\Users\ThisUser\" is parent folder where ".android/avd" folder exists.
avd folder path here is "D:\DATA\Users\ThisUser.android\avd"
Note that you must put "D:\DATA\Users\ThisUser\", not "D:\DATA\Users\ThisUser**.android**"
I've set up the Android SDK and Eclipse on my machine running Windows XP and AVDs (Android Virtual Devices) are saved to "Documents and Settings\user\.android" by default. Is there any way to change this behavior? I have all of the other components saved in a directory on a separate partition and would like everything to be consolidated. Obviously not a huge deal but does anyone here know a workaround for this?
Add a new user environment variable (Windows 7):
Start Menu > Control Panel > System > Advanced System Settings (on the left) > Environment Variables
Add a new user variable (at the top) that points your home user directory:
Variable name: ANDROID_SDK_HOME Variable value:
a path to a directory of your choice
AVD Manager will use this directory to save its .android directory into it.
For those who may be interested, I blogged about my first foray into Android development...
Android "Hello World": a Tale of Woe
Alternatively, you can use the Rapid Environment Editor to set the environment variables.
Based on official documentation https://developer.android.com/studio/command-line/variables.html you should change ANDROID_AVD_HOME environment var:
Emulator Environment Variables
By default, the emulator stores configuration files under
$HOME/.android/ and AVD data under $HOME/.android/avd/. You can
override the defaults by setting the following environment variables.
The emulator -avd command searches the avd directory in the
order of the values in $ANDROID_AVD_HOME,
$ANDROID_SDK_HOME/.android/avd/, and $HOME/.android/avd/. For emulator
environment variable help, type emulator -help-environment at the
command line. For information about emulator command-line options, see
Control the Emulator from the Command Line.
ANDROID_EMULATOR_HOME: Sets the path to the user-specific emulator configuration directory. The default location is
$ANDROID_SDK_HOME/.android/.
ANDROID_AVD_HOME: Sets the path to the directory that contains all AVD-specific files, which mostly consist of very large
disk images. The default location is $ANDROID_EMULATOR_HOME/avd/.
You might want to specify a new location if the default location is
low on disk space.
After change or set ANDROID_AVD_HOME you will have to move all content inside ~user/.android/avd/ to your new location and change path into ini file of each emulator, just replace it with your new path
Modify the file "virtual_android2.2.ini" in "C:\Documents and Settings{your windows login}.android\avd\":
target=android-8
path=E:\android_workspace\avd\virtual_android2.2.avd
And move the folder "virtual_android2.2.avd" from "C:\Documents and Settings{your windows login}.android\avd\" into "E:\android_workspace\avd\".
Move your .android to wherever you want it to.
Then, create a symlink like this:
# In your home folder
$ ln -s /path/to/.android/ .
This simply tells Linux that whenever the path ~/.android is referenced by any application, link it to /path/to/.android.
Go to the Android tools directory. Edit the android.bat command file. At about the end of the command file, find a line similar to
call %java_exe% -Djava.ext.dirs=%java_ext_dirs% -Dcom.android.sdkmanager.toolsdir="%tools_dir%" -Dcom.android.sdkmanager.workdir="%work_dir%" -jar %jar_path% %*
and replace
call %java_exe%
with
call %java_exe% -Duser.home={your_prefer_dir}
where {your_prefer_dire} is your preferred directory without braces but add doublequotes,
e.g.
call %java_exe% -Duser.home="E:\Program Files (x86)\android-sdk-windows"
For Visual Studio 2017 on Windows 10
Copy C:\Users\YOURUSERNAME\.android folder to (for example) E:\avd
Open the environment variables window:
Go into Settings and click on System.
On the left, click About and select System info at the
bottom.
In the new window, click Advanced system
settings on the left.
Click Environment Variables at
the bottom of the resulting window.
Add a new variable:
Variable name: ANDROID_SDK_HOME
Variable value: a path to a directory (e.g E:\avd)
Don't include .android in the variable value.
Restart Visual Studio.
For change SDK & NDK location go to:
Tools -> Options -> Xamarin -> Android Setting
You can change the .ini file for the new AVD:
target=android-7
path=C:\Users\username\.android\avd\VIRTUAL_DEVICE_NAME.avd
I don't know how to specify where the .ini file should be stored :)
In Windows 10 I had that problem because My C Drive was getting full and I had needed free Space, AVD folder had 14 gig space so I needed to move that folder to another driver, first answer not work for Me so I tested another way to fix it this problem,
I make a picture for you if you have the same problem, you don't need to move all of the files in .android folder to another drive (this way not work) just move avd folders in ....android\avd to another drive and open .ini files and change avd folder path from that file to the new path.
Like this image:
I hope this works for you.
Note: careful about a separate character before and after the path in ini file that you cannot see,if you remove that character it's not works
Check this out.
using the android command to create avd you can specify where to place files.
-p --path Location path of the directory where the new AVD will be created
The environmental variable ANDROID_AVD_HOME can be used to define the directory in which the AVD Manager shall look for AVD INI files and can therefore be used to change the location of the virtual devices;
The default value is %USERPROFILE%\.android\avd on Windows (or ~/.android/avd on Linux).
One can also create a link for the whole directory %USERPROFILE%\.android on Windows (or a sym-link for directory ~/.android on Linux).
When moving AVDs, the path entry in AVD INI file needs to be updated accordingly.
Another way to specify ANDROID_SDK_HOME without messing around with environment variables (especially when using ec2) is simply create a shortcut of eclipse and add the following as target
C:\Windows\System32\cmd.exe /C "setx ANDROID_SDK_HOME YOUR AVD PATH /M & YOUR ECLIPSE.EXE PATH"
This will set ANDROID_SDK_HOME as system variable whenever you launch eclipse.
HTH
Paul
Please take note of the following : modifying android.bat in the Android tools directory, as suggested in a previous answer, may lead to problems.
If you do so, in order to legitimately have your .android directory located to a non-default location then there may be an inconsistency between the AVDs listed by Android Studio (using "Tools > Android > AVD Manager") and the AVDs listed by sdk command line tool "android avd".
I suppose that Android Studio, with its internal AVD Manager, does not use the android.bat modified path ; it relies on the ANDROID_SDK_HOME variable to locate AVDs.
My own tests have shown that Android tools correctly use the ANDROID_SDK_HOME variable.
Therefore, there is no point, as far as I know, in modifying android.bat, and using the environment variable should be preferred.
there are major 4 steps
1. copy the .android folder to your desired location as i did in D:\Android\.android
2. set ANDROID_AVD_HOME in environment variables like ANDROID_AVD_HOME D:\Android\.android\avd
3. change avd name.ini file contents with new location like
avd.ini.encoding=UTF-8
path=D:\Android\.android\avd\Pixel_2_API_29.avd
path.rel=avd\Pixel_2_API_29.avd
target=android-29
4. restart android studio
1 - Move AVD to new Folder
2 - start Menu > Control Panel > System > Advanced System Settings (on the left) > Environment Variables
Add a new user variable:
Variable name: ANDROID_AVD_HOME
Variable value: a path to a directory of your choice
3 - Change the file .INI Set new folder.
4 - Open Android Studio
WORKS - Windows 2010
MORE INSTRUCTIONS : https://developer.android.com/studio/command-line/variables
In my case, what I concerned about is the C: drive disk space.
So what I did is copy the ".avd" folder(not file) to other drive, and leave the ".ini" file there but change it to point to the moved
I think the easiest way is to move the avd folder from C:\Users[USER].android folder to your desired location then create a symbolic link to it in C:\Users[USER].android with the same name.
If you wonder how to do this, first install Link Shell Extension. After folder movement right click on it and select Pick Link Source then right click in .android folder and in Drop As... sub menu select Symbolic Link.
I followed https://www.mysysadmintips.com/windows/clients/761-move-android-studio-avd-folder-to-a-new-location.
Start copying a folder "C:\Users\user\.android\avd" to "D:\Android\.android\avd" (or something else).
Close Android Studio and running emulators.
Press Win + Break and open Advanced System Settings. Then press Environment Variables. Add a user variable ANDROID_SDK_HOME. (I didn't experiment with ANDROID_AVD_HOME.) In Variable value field write D:\Android. If you also moved SDK to another folder, change ANDROID_HOME (I forgot to change it and some emulators didn't launch, see https://stackoverflow.com/a/57408085/2914140).
Wait until the folder will finish copying and start Android Studio.
Open Android Virtual Device Manager and see a list of emulators. If you don't see emulators and they existed, then probably you entered wrong path into user variable value in step 3. In this case close AS, change the variable and open AS again.
Start any emulator. It will try to restore it's state, but it sometimes fails. A black screen can appear instead of Android wallpaper.
In this case you can:
a. Restart your emulator. To do this close running emulator, then in AVD Manager click Cold Boot Now.
b. If this didn't help, open emulator settings, found in file "D:\Android\.android\avd\Pixel_API_27.ini".
Change a path to a new AVD folder. Restart the emulator.
Delete old AVD folder from "C:\Users\user\.android\avd".
For Windows 10 :
ANDROID_SDK_HOME
this link helped me.
Then just moved all content of "avd" to the new location. Now you may need to change the value of "path=" in the configuration Setting file of each avds to the new location. You can see the old avds in avd manager in Android Studio and they work.
ANDROID_SDK_HOME also worked for me on Windows 8 x64
also find all location (in my case it was d:\.android) and delete it. You won't need it anymore.
In AVD manager, after setting up AVD using a target with Google APIs, on run was getting error.
Detail showed: "AVD Unknown target 'Google Inc.:Google APIs:...... "
During install (on Win7 system) I had chosen a SDK directory location, instead of accepting C:\Users\...
I'd then added that directory to environment variable 'path'
Command line: android list targets did show a couple of Google apis.
Setting ANDROID_SDK_HOME to my install path fixed the avd run error.
Variable name: ANDROID_SDK_HOME
Variable value: C:\Users>User Name
worked for me.
MacOs
Get a directory adv
./emulator -help-datadir
the default directory is:
/Users/{your_computer_user_name}/.android
and then Go to avd Folder edit .ini file with path to your custom emulator directory
example :
path=/Volumes/Macintos/_emulatorandroid/avd/Nexus_5X_API_27.avd
path.rel=avd/Nexus_5X_API_27.avd
target=android-27
and then save. Now your Emulator haschange
And Result:
When trying to create an AVD with the android SDK AVD manager I get 'Error: null'. This keeps happening because the SDK manager is looking for 'List of existing Android Virtual Devices located at \...(wrong location).
How can I change the file location?
I had similar issue. I have solved this by setting up the environment variable ANDROID_SDK_HOME in my startup script. The path shall be your desired location of .android folder, excluding the last slash. Example:
SET ANDROID_SDK_HOME=C:\Users\toybuilder\Downloads
I had the same problem this weekend. In my case, I was able to create the AVD's, but not able to start them.
The problem was caused by the AVD Manager creating the AVD's in a different directory from where the emulator was trying to launch the AVD's.
In my case, AVD Manager was initially reporting the list of existing Android Virtual Device located at C:\Users\toybuilder\Downloads\.android\avd
It turns out that my Java runtime (in this case, JDK 1.6u24) was reporting C:\Users\toybuilder\Downloads as my home directory (user.home property). I first confirmed this via Eclipse:
In Eclipse, go to:
Eclipse Menu: Help -> About Eclipse
Click on the [Installation Details]
Click on the [Configuration] tab:
The text box fills with an extended dump of the Eclipse environment .
Look for the user.home value. In my case, the line read:
user.home=C:\Users\toybuilder\Downloads
It turns out that there's a long-standing Java bug (nearly 9 years old) on how the Java runtime determine's the user.home property - as discussed elsewhere on StackOverflow
In my particular case, the buggy behavior was triggered by a bad windows folders redirection. I had apparently moved my Desktop folder into my Downloads directory at some point by accident. Although I had fixed the problem, it nevertheless left an entry in my registry with a Desktop folder redirection to the Downloads directory. There was a HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Desktop registry key that pointed, incorrectly, to C:\Users\toybuilder\Downloads\Desktop
The Java runtime was apparently setting user.home as "Desktop"/.. (i.e., the Downloads directory), while some other mechanisms were resolving the home directory at the correct location (probably the Windows %userprofile% environmental value) -- and hence when the emulator was starting up, it could not find the .android/avd directory, because it was looking from a different starting directory.
After I deleted the incorrect redirection registry key, the problem went away.
Windows with "folder redirection" have this issue. If you are logged in a domain and the admin has set a redirection for your home folders eclipse/android SDK cannot read correctly some files. You can try the following steps:
Close Eclipse
Just set a user environmental variable like:
Variable Name:ANDROID_SDK_HOME
Variable Value:C:\Users\{your login}
Copy the .android folder from the "redirection" folder to C:\Users\{your login}
Start Eclipse.
Now the AVDs should work fine.
I have a Solution for this error:
Right click Folder "C:\User\yournamecomputer.android" and uncheck Read-Only
it work for me :D
SET ANDROID_SDK_HOME variable not working for me.
Open eclipse
Click on window menu and then select preference.
Select android from left hand side.
Now SET SDK location e.g. E:\android\sdk instead of ../sdk means set Absolute path instead of Relative path.
Its worked for me.
I hope this help someone and save time.