日本黄色一级经典视频|伊人久久精品视频|亚洲黄色色周成人视频九九九|av免费网址黄色小短片|黄色Av无码亚洲成年人|亚洲1区2区3区无码|真人黄片免费观看|无码一级小说欧美日免费三级|日韩中文字幕91在线看|精品久久久无码中文字幕边打电话

當(dāng)前位置:首頁 > 工業(yè)控制 > 電子設(shè)計(jì)自動(dòng)化
[導(dǎo)讀]作者:岳峰,華清遠(yuǎn)見嵌入式學(xué)院講師。 更新了android 1.5 sdk后,首先會(huì)遇到一個(gè)棘手問題,模擬器啟動(dòng)不了,控制臺(tái)報(bào)“Failed to find an AVD compatible with target”錯(cuò)誤。解決辦法如下: 進(jìn)入1.5 sdk目錄下,-

作者:岳峰,華清遠(yuǎn)見嵌入式學(xué)院講師。

更新了android 1.5 sdk后,首先會(huì)遇到一個(gè)棘手問題,模擬器啟動(dòng)不了,控制臺(tái)報(bào)“Failed to find an AVD compatible with target”錯(cuò)誤。解決辦法如下:

進(jìn)入1.5 sdk目錄下,->tools->敲入命令“./android create avd -n my_android1.5 -t 2 ”,注意,win系統(tǒng),無需前邊得./ ,會(huì)創(chuàng)建出“my_android1.5” avd文件,然后到ide環(huán)境下,run一個(gè)項(xiàng)目,系統(tǒng)提示選擇一個(gè)avd ,選擇你剛剛創(chuàng)建得“my_android1.5”,即可。以下是操作截圖

這里我創(chuàng)建了三個(gè)avd,分別對應(yīng)1.5 1.1 googleApi

一個(gè)很酷得功能在創(chuàng)建avd文件得第二步,控制臺(tái)提示“是否自定義自己得設(shè)備”,默認(rèn)選項(xiàng)是"no",如果輸入 "y",接下來可以一步步根據(jù)提示,定制自己得模擬器性能參數(shù)。比較有意思,參數(shù)表如下:

Characteristic

Description

Property

Device ram size

The amount of physical RAM on the device, in megabytes. Default value is "96".

hw.ramSize

Touch-screen support

Whether there is a touch screen or not on the device. Default value is "yes".

hw.touchScreen

Trackball support

Whether there is a trackball on the device. Default value is "yes".

hw.trackBall

Keyboard support

Whether the device has a QWERTY keyboard. Default value is "yes".

hw.keyboard

DPad support

Whether the device has DPad keys. Default value is "yes".

hw.dPad

GSM modem support

Whether there is a GSM modem in the device. Default value is "yes".

hw.gsmModem

Camera support

Whether the device has a camera. Default value is "no".

hw.camera

Maximum horizontal camera pixels

Default value is "640".

hw.camera.maxHorizontalPixels

Maximum vertical camera pixels

Default value is "480".

hw.camera.maxVerticalPixels

GPS support

Whether there is a GPS in the device. Default value is "yes".

hw.gps

Battery support

Whether the device can run on a battery. Default value is "yes".

hw.battery

Accelerometer

Whether there is an accelerometer in the device. Default value is "yes".

hw.accelerometer

Audio recording support

Whether the device can record audio. Default value is "yes".

hw.audioInput

Audio playback support

Whether the device can play audio. Default value is "yes".

hw.audioOutput

SD Card support

Whether the device supports insertion/removal of virtual SD Cards. Default value is "yes".

hw.sdCard

Cache partition support

Whether we use a /cache partition on the device. Default value is "yes".

disk.cachePartition

Cache partition size

Default value is "66MB".

disk.cachePartition.size

這個(gè)工具得其他操作方法:

Usage:
android [global options] action [action options]

Global options:
-h --help This help.
-s --silent Silent mode: only errors are printed out.
-v --verbose Verbose mode: errors, warnings and informational messages are pr
inted.

Valid actions are composed of a verb and an optional direct object:
- list : Lists existing targets or virtual devices.
- list avd : Lists existing Android Virtual Devices.
- list target : Lists existing targets.
- create avd : Creates a new Android Virtual Device.
- move avd : Moves or renames an Android Virtual Device.
- delete avd : Deletes an Android Virtual Device.
- update avd : Updates an Android Virtual Device to match the folders of a ne
w SDK.
- create project: Creates a new Android Project.
- update project: Updates an Android Project (must have an AndroidManifest.xml).

Action "list ":
Lists existing targets or virtual devices.
Options:
No options

Action "list avd":
Lists existing Android Virtual Devices.
Options:
No options

Action "list target":
Lists existing targets.
Options:
No options

Action "create avd":
Creates a new Android Virtual Device.
Options:
-t --target Target id of the new AVD [required]
-c --sdcard Path to a shared SD card image, or size of a new sdcard for the
new AVD
-p --path Location path of the directory where the new AVD will be created

-n --name Name of the new AVD [required]
-f --force Force creation (override an existing AVD)
-s --skin Skin of the new AVD

Action "move avd":
Moves or renames an Android Virtual Device.
Options:
-p --path New location path of the directory where to move the AVD
-n --name Name of the AVD to move or rename [required]
-r --rename New name of the AVD to rename

Action "delete avd":
Deletes an Android Virtual Device.
Options:
-n --name Name of the AVD to delete [required]

Action "update avd":
Updates an Android Virtual Device to match the folders of a new SDK.
Options:
-n --name Name of the AVD to update [required]

Action "create project":
Creates a new Android Project.
Options:
-k --package Package name [required]
-n --name Project name
-a --activity Activity name [required]
-t --targetTarget id of the new project [required]
-p --path Location path of new project [required]

Action "update project":
Updates an Android Project (must have an AndroidManifest.xml).
Options:
-t --target Target id to set for the project [required]
-p --path Location path of the project [required]

-n --name Project name

“本文由華清遠(yuǎn)見http://www.embedu.org/index.htm提供”



來源:華清遠(yuǎn)見1次

本站聲明: 本文章由作者或相關(guān)機(jī)構(gòu)授權(quán)發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點(diǎn),本站亦不保證或承諾內(nèi)容真實(shí)性等。需要轉(zhuǎn)載請聯(lián)系該專欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請及時(shí)聯(lián)系本站刪除( 郵箱:macysun@21ic.com )。
換一批
延伸閱讀
關(guān)閉