Android emulator modifies default path problem

Source: Internet
Author: User

The problem arises:

When the local configuration of their own AVD (because the local can have a graphical interface, when SSH connection to the computer room server, can only be no interface, so it needs to be configured locally), sent to the server, the AVD want to put in and engineering a directory, not the current default ~/.ANDROID/AVD, So I met the problem of not finding the AVD,

1. Knowledge points ( translated from official documents )

Default location for AVD files

When creating an AVD, the Android tool creates a dedicated directory on the development computer to hold the AVD, including the AVD profile, user data mirroring, SD card mirroring, and other device-related files. Note that this directory does not include system mirroring-----Instead, the AVD configuration file contains a mapping to the system image, which is loaded when the AVD is started.

The Androd tool also creates a <avd_name>.ini file in the. ANDROID/AVD directory, which specifies the location of the AVD directory.

Android Tools default Create AVD directory to ~/.ANDROID/AVD (Linux/max), C:\Documents and settings\<user>\.android\ (Windows XP), C + + Users\<user>\.android\ (Win7/vista). If you want to customize the location, you need to add the-p <path> option when creating the AVD.

Android Create AVD-N my_android1.5 -T2 -P Path/ to/my/AVD

Online search information, some say is set android_sdk_home, this and AVD related? MV~/.android/AVD~/.android/Avd_bak#take Backup of existing images in case you need them LN-s Path/ to/my/AVD~/.android/Yes, just set up a soft link!
At that time in the establishment of a soft link, found that link path more than a layer of AVD, so need to delete this soft link, tragedy is, I deleted, accidentally deleted the content of the link, can only be reconfigured again! Be careful when deleting soft links, such asRM-RF Symbolic_nameRM-RF symbolic_name/<----------Remember not to add "/"

To summarize:

1. When creating the AVD, add-p, specify the directory

2. Soft link


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.