How to modify the default path of the android Simulator

Source: Internet
Author: User

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


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.