[记在小本上] android 1.5 创建新的avd, 和使用此avd launch emulator
2010-05-04 22:05
639 查看
1. 查看当前版本支持的android target
* android list targets
[打印出来的信息]
Available Android targets:
id: 1
Name: Android 1.1
Type: Platform
API level: 2
Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id: 2
Name: Android 1.5
Type: Platform
API level: 3
Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id: 3
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Description: Android + Google APIs
Based on Android 1.5 (API level 3)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: QVGA-P, HVGA-L, HVGA (default), QVGA-L, HVGA-P
2. 基于id 为1 的target 创建一个名字为my_avk_name的avd
*android create avd --name my_avd_name --target 1
[打印出来的信息]
Android 1.1 is a basic Android platform.
Do you wish to create a custom hardware profile [no]y
Device ram size: The amount of physical RAM on the device, in megabytes.
hw.ramSize [96]:
Touch-screen support: Whether there is a touch screen or not on the device.
hw.touchScreen [yes]:y
Track-ball support: Whether there is a trackball on the device.
hw.trackBall [yes]:y
Keyboard support: Whether the device has a QWERTY keyboard.
hw.keyboard [yes]:y
DPad support: Whether the device has DPad keys
hw.dPad [yes]:y
GSM modem support: Whether there is a GSM modem in the device.
hw.gsmModem [yes]:y
Camera support: Whether the device has a camera.
hw.camera [no]:y
Maximum horizontal camera pixels
hw.camera.maxHorizontalPixels [640]:
Maximum vertical camera pixels
hw.camera.maxVerticalPixels [480]:
GPS support: Whether there is a GPS in the device.
hw.gps [yes]:y
Battery support: Whether the device can run on a battery.
hw.battery [yes]:
Accelerometer: Whether there is an accelerometer in the device.
hw.accelerometer [yes]:
Audio recording support: Whether the device can record audio
hw.audioInput [yes]:
Audio playback support: Whether the device can play audio
hw.audioOutput [yes]:
SD Card support: Whether the device supports insertion/removal of virtual SD Cards.
hw.sdCard [yes]:
Cache partition support: Whether we use a /cache partition on the device.
disk.cachePartition [yes]:
Cache partition size
disk.cachePartition.size [66MB]:
Created AVD 'my_avd_name' based on Android 1.1
3. 不使用avd launch emulator 会出现的问题
* emulator
[错误信息]
emulator: ERROR: You did not provide the name of an Android Virtual Device
with the '-avd <name>' option. Read -help-avd for more information.
If you *really* want to *NOT* run an AVD, consider using '-data <file>'
to specify a data partition image file (I hope you know what you're doing).
4. create 一个size为256M的sd card.(SD card 默认大小是8M)
* mksdcard 256M mysdcard
5. 是用刚刚建立的avd 和sd card launch emulator
*emulator -avd my_avd_name -sdcard mysdcard
emulator: emulator window was out of view and was recentred
[当电脑主机的分辨率不足以支持emulator的大小的时候会打印出这句话]
* android list targets
[打印出来的信息]
Available Android targets:
id: 1
Name: Android 1.1
Type: Platform
API level: 2
Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id: 2
Name: Android 1.5
Type: Platform
API level: 3
Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id: 3
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Description: Android + Google APIs
Based on Android 1.5 (API level 3)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: QVGA-P, HVGA-L, HVGA (default), QVGA-L, HVGA-P
2. 基于id 为1 的target 创建一个名字为my_avk_name的avd
*android create avd --name my_avd_name --target 1
[打印出来的信息]
Android 1.1 is a basic Android platform.
Do you wish to create a custom hardware profile [no]y
Device ram size: The amount of physical RAM on the device, in megabytes.
hw.ramSize [96]:
Touch-screen support: Whether there is a touch screen or not on the device.
hw.touchScreen [yes]:y
Track-ball support: Whether there is a trackball on the device.
hw.trackBall [yes]:y
Keyboard support: Whether the device has a QWERTY keyboard.
hw.keyboard [yes]:y
DPad support: Whether the device has DPad keys
hw.dPad [yes]:y
GSM modem support: Whether there is a GSM modem in the device.
hw.gsmModem [yes]:y
Camera support: Whether the device has a camera.
hw.camera [no]:y
Maximum horizontal camera pixels
hw.camera.maxHorizontalPixels [640]:
Maximum vertical camera pixels
hw.camera.maxVerticalPixels [480]:
GPS support: Whether there is a GPS in the device.
hw.gps [yes]:y
Battery support: Whether the device can run on a battery.
hw.battery [yes]:
Accelerometer: Whether there is an accelerometer in the device.
hw.accelerometer [yes]:
Audio recording support: Whether the device can record audio
hw.audioInput [yes]:
Audio playback support: Whether the device can play audio
hw.audioOutput [yes]:
SD Card support: Whether the device supports insertion/removal of virtual SD Cards.
hw.sdCard [yes]:
Cache partition support: Whether we use a /cache partition on the device.
disk.cachePartition [yes]:
Cache partition size
disk.cachePartition.size [66MB]:
Created AVD 'my_avd_name' based on Android 1.1
3. 不使用avd launch emulator 会出现的问题
* emulator
[错误信息]
emulator: ERROR: You did not provide the name of an Android Virtual Device
with the '-avd <name>' option. Read -help-avd for more information.
If you *really* want to *NOT* run an AVD, consider using '-data <file>'
to specify a data partition image file (I hope you know what you're doing).
4. create 一个size为256M的sd card.(SD card 默认大小是8M)
* mksdcard 256M mysdcard
5. 是用刚刚建立的avd 和sd card launch emulator
*emulator -avd my_avd_name -sdcard mysdcard
emulator: emulator window was out of view and was recentred
[当电脑主机的分辨率不足以支持emulator的大小的时候会打印出这句话]
相关文章推荐
- 详解android如何创建和使用AVD
- cocos2d-x学习之旅(五):1.5 使用eclipse编译cocos2d-x示例项目,创建cocos2d-x android项目并部署到真机
- android 模拟器 SDCARD创建和使用 (android emulator sdcard create and use)
- Android Studio cannot launch avd in emulator问题解决
- android emulator创建avd命令
- Android emulator 的控制按钮不能使用并显示 "hardware buttons not enabled in avd"
- cocos2d-x学习之旅(五):1.5 使用eclipse编译cocos2d-x示例项目,创建cocos2d-x android项目并部署到真机
- android studio创建模拟器报错解决 emulator: ERROR: This AVD's configuration is missing a kernel file!!
- cocos2d-x学习之旅(五):1.5 使用eclipse编译cocos2d-x示例项目,创建cocos2d-x android项目并部署到真机
- android studio Cannot launch AVD in emulator. Output: sh: 1: glxinfo: not found
- android 虚拟设备(AVD)的创建和使用
- 【Android开发】 基于Android SDK 4.0.3 的AVD创建、启动以及基本使用
- Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted.
- android 虚拟设备(AVD)的创建和使用
- Android Studio cannot launch avd in emulator解决方案
- 通过CMD命令行创建和使用Android 模拟器 AVD
- Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted.的解决办法(转载)
- android stutio 使用viewpager创建一个滑动图片浏览app
- Linux: android studio AVD emulator启动不了 | openGL | glx
- 使用命令行创建Android工程报错:"Target id is not valid. Use 'android.bat list targets' to get the target ids"