更改Android的默认虚拟机地址
List of existing Android Virtual Devices located
运行命令都在:cmd命令窗口下输入
(1):查看已有的target
命令:android list target
需要切换到sdk的tools文件下运行
C:\Users\EK>D:
D:\>cd D:\Java\Android\adt-bundle-windows-x86_64\sdk\tools
D:\Java\Android\adt-bundle-windows-x86_64\sdk\tools>android list target
Available Android targets:
----------
id: 1 or "android-13"
Name: Android 3.2
Type: Platform
API level: 13
Revision: 1
Skins: WXGA (default)
ABIs : armeabi
----------
id: 2 or "Google Inc.:Google APIs:13"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 1
Description: Android + Google APIs
Based on Android 3.2 (API level 13)
Libraries:
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WXGA (default)
ABIs : armeabi
----------
id: 3 or "android-14"
Name: Android 4.0
Type: Platform
API level: 14
Revision: 3
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W
XGA720, WXGA800
ABIs : armeabi-v7a
----------
id: 4 or "Google Inc.:Google APIs:14"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 2
Description: Android + Google APIs
Based on Android 4.0 (API level 14)
Libraries:
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WVGA854, WQVGA400, WSVGA, WXGA720, HVGA, WQVGA432, WVGA800 (default)
, QVGA, WXGA800
ABIs : armeabi-v7a
----------
id: 5 or "android-15"
Name: Android 4.0.3
Type: Platform
API level: 15
Revision: 3
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W
XGA720, WXGA800
ABIs : no ABIs.
----------
id: 6 or "android-16"
Name: Android 4.1.2
Type: Platform
API level: 16
Revision: 4
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W
XGA720, WXGA800, WXGA800-7in
ABIs : armeabi-v7a, x86
----------
id: 7 or "Google Inc.:Google APIs:16"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 3
Description: Android + Google APIs
Based on Android 4.1.2 (API level 16)
Libraries:
* com.google.android.media.effects (effects.jar)
Collection of video effects
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WVGA854, WQVGA400, WSVGA, WXGA800-7in, WXGA720, HVGA, WQVGA432, WVGA
800 (default), QVGA, WXGA800
ABIs : armeabi-v7a
----------
id: 8 or "android-17"
Name: Android 4.2
Type: Platform
API level: 17
Revision: 1
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W
XGA720, WXGA800, WXGA800-7in
ABIs : armeabi-v7a, mips
----------
id: 9 or "Google Inc.:Google APIs:17"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 1
Description: Android + Google APIs
Based on Android 4.2 (API level 17)
Libraries:
* com.google.android.media.effects (effects.jar)
Collection of video effects
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WVGA854, WQVGA400, WSVGA, WXGA800-7in, WXGA720, HVGA, WQVGA432, WVGA
800 (default), QVGA, WXGA800
ABIs : armeabi-v7a
D:\Java\Android\adt-bundle-windows-x86_64\sdk\tools>
(2):创建AVD
命令:android create avd -n a4.2 -t 9 -c 4096M -f -p D:\Java\Android\adt-bundle-windows-
x86_64\avd\a4.2
-n --name 自己定义的虚拟机名字(a4.2)
-t --target 我选得是Android 4.2
-c --sdcard 这个时候可以建一个sd卡,方面以后使用,我自己建了个4G的
-f --force 有时候文件属性是只读,这个选项可以解决,强制覆盖
-p --path 设置你自己想放置虚拟机的地址
D:\Java\Android\adt-bundle-windows-x86_64\sdk\tools>android create avd -n a4.2 -
t 9 -c 4096M -f -p D:\Java\Android\adt-bundle-windows-x86_64\avd\a4.2
Auto-selecting single ABI armeabi-v7a
Created AVD 'a4.2' based on Google APIs (Google Inc.), ARM (armeabi-v7a) process
or,
with the following hardware config:
hw.lcd.density=240
vm.heapSize=48
hw.ramSize=512
D:\Java\Android\adt-bundle-windows-x86_64\sdk\tools>
(3)查看AVD是否创建成功:
命令:android list avd
D:\Java\Android\adt-bundle-windows-x86_64\sdk\tools>android list avd
Available Android Virtual Devices:
Name: a4.2
Path: D:\Java\Android\adt-bundle-windows-x86_64\avd\a4.2
Target: Google APIs (Google Inc.)
Based on Android 4.2 (API level 17)
ABI: armeabi-v7a
Skin: WVGA800
Sdcard: 4096M
D:\Java\Android\adt-bundle-windows-x86_64\sdk\tools>
4)启动模拟器
命令:emulator -avd a4.2
D:\Java\Android\adt-bundle-windows-x86_64\sdk\tools>emulator -avd a4.2
D:\Java\Android\adt-bundle-windows-x86_64\sdk\tools>emulator: emulator window wa
s out of view and was recentered
本文档为【更改Android虚拟机的默认虚拟机地址 List of existing Android Virtual Devices located】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。