How to change the default Virtual Machine address of Android

Source: Internet
Author: User

First, the virtual machine has been created

1) Find the file "Virtual Machine. ini", for example, Zhai. ini.

How to find: You can view the VM storage address shown at the top of the page when running SDK manager.

For example:

List of existing Android virtual devices located at C:/document and settings/zhaixishan/. Android/AVD

2) modify the Zhai. ini file

Path = {the address you want to store}

For example, change to: D:/myinstallpath/AVD.

3) copy the VM file to the address you changed.

 

Second, specify:

Run the command in: cmd command window, enter

1): Check the existing target. If you do not download the target

Command: Android list target or android list targets

For example:

D:/saftwaretools/Android SDK/tools> Android list target
Available Android targets:
ID: 1 or "Android-8"
Name: IOS 2.2
Type: Platform
API level: 8
Revision: 2
Skins: hvga (default), qvga, wqvga400, wqvga432, wvga800, wvga854
ID: 2 or "Samsung Electronics Co., Ltd.: Galaxy Tab addon: 8"
Name: Galaxy Tab addon
Type: add-on
Vendor: Samsung Electronics Co., Ltd.
Revision: 1
Based on Android 2.2 (API Level 8)
Sqvgakins: wvga854, wqvga400, Galaxy Tab (default), hvga, wqvga432, wvga800,
ID: 3 or "Android-9"
Name: IOS 2.3
Type: Platform
API level: 9
Revision: 1
Skins: hvga (default), qvga, wqvga400, wqvga432, wvga800, wvga854

2): Create AVD

Command: Android create AVD-N Zhai-T 1-C 8192 M-F-P d:/myinstallpath/AVD/
-N -- name: Virtual Machine name defined by yourself (Zhai)
-T -- target: Android 2.2
-C -- sdcard: you can create an SD card at this time. For future use, I have created an 8g
-F -- force: Sometimes the file attribute is read-only. This option can be fixed to force overwrite.
-P -- path: Set the address you want to place the virtual machine on.

After running:
Ndroid 2.2 is a basic Android platform.
Do you wish to create a custom hardware profile [No] No
Created AVD 'zhai' Based on Android 2.2,
With the following hardware config:
HW. LCD. density = 160

 
Note: during the process, you will be reminded if you want to configure special hardware. If you do not have any special settings, enter no directly.

3) Check whether AVD is created successfully:

Command: Android list AVD
D:/saftwaretools/Android SDK/tools> Android list AVD
Available Android Virtual Devices:
Name: Zhai
Path: D:/myinstallpath/AVD
Target: Android 2.2 (API Level 8)
Skin: hvga
Sdcard: 8192 m

4) Start the simulator

Command: emulator-AVD Zhai

For example:
D:/saftwaretools/Android SDK/tools> emulator-AVD Zhai
Java version "1.6.0 _ 23"
Java (TM) se Runtime Environment (build 1.6.0 _ 23-b05)
Java hotspot (TM) Client VM (build 19.0-b09, mixed mode, sharing)
04:27:23 E/ddms: shutting down due to uncaught exception
04:27:23 E/ddms: bad version: Standalone
Java. Lang. illegalargumentexception: bad version: Standalone
At com. Android. sdkstats. sdkstatsservice. normalizeversion (sdkstatsservice. Java: 467)
At com. Android. sdkstats. sdkstatsservice. Doping (sdkstatsservice. Java: 195)
At com. Android. sdkstats. sdkstatsservice. Ping (sdkstatsservice. Java: 130)
At com. Android. ddms. Main. Main (main. Java: 78) Note: If you want to specify the memory size of the VM:
Additional parameter:-partition-size 512

Related Article

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.