Problem:
When you configure your own avd locally (because the local GUI can be available, when ssh is connected to the server in the data center, it can only be unbounded, so you need to configure it locally ), when sent to the server, avd wants to put it in a directory with the project, instead of the current default ~ /. Android/avd, so the avd cannot be found,
1. knowledge points (translated from official documents)
Default avd File Location
When an avd is created, the android tool creates a dedicated directory on the developed computer to store the avd, the Directory includes the avd configuration file, user data image, SD card image, and other device-related files. Note that this directory does not include the system image. On the contrary, the avd configuration file contains a ing to the system image, which is loaded when the avd is started.
The androd tool also creates a. ini file under the. android/avd Directory, which specifies the location of the avd directory.
The android tool creates the avd directory to ~ by default ~ /. Android/avd (linux/max), c: \ Documents ents and Settings \ \. Android \ (windows xp), c: \ Users \ \. Android \ (win7/vista ). If you want to customize the location, you must add-p when creating the avd. .
android create avd -n my_android1.5 -t 2 -p path/to/my/avd
When I check the information online, some say it is set to ANDROID_SDK_HOME, which is related to avd?
mv ~/.android/avd ~/.android/avd_bak #take backup of existing images in case you need them ln -s path/to/my/avd ~/.android/Yes, it is set soft link!
At that time, when creating a soft link, I found that the link path had an additional level of avd, so I needed to delete this soft link. The tragedy is that when I was deleting, accidentally deleted the link content. You can only reconfigure it again! Pay attention to deleting soft links, such as rm-rf symbolic_name/<---------- do not add "/"
Summary:
1. When creating avd, add-p to specify the Directory
2. Soft link