www.久久久久|狼友网站av天堂|精品国产无码a片|一级av色欲av|91在线播放视频|亚洲无码主播在线|国产精品草久在线|明星AV网站在线|污污内射久久一区|婷婷综合视频网站

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

作者:岳峰,華清遠見嵌入式學院講師。

更新了android 1.5 sdk后,首先會遇到一個棘手問題,模擬器啟動不了,控制臺報“Failed to find an AVD compatible with target”錯誤。解決辦法如下:

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

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

一個很酷得功能在創(chuàng)建avd文件得第二步,控制臺提示“是否自定義自己得設備”,默認選項是"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

這個工具得其他操作方法:

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

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



來源:華清遠見1次

本站聲明: 本文章由作者或相關機構授權發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點,本站亦不保證或承諾內容真實性等。需要轉載請聯(lián)系該專欄作者,如若文章內容侵犯您的權益,請及時聯(lián)系本站刪除。
換一批
延伸閱讀

其他電腦(比如安卓手機/平板電腦)的屏幕壞了,你可能想在安排維修之前緊急訪問一些東西。你可以使用android的USB OTG功能(是的,幾乎每個android都支持這個功能,你可以將鼠標和鍵盤連接到它)。

關鍵字: USB 鼠標 Android 樹莓派

Google 宣布與中國 AR 科技公司 XREAL 達成深度戰(zhàn)略合作,聯(lián)合推出全球首款專為 Android XR 平臺打造的旗艦級 AR 眼鏡 Project Aura。

關鍵字: Google XREAL Android XR眼鏡 AR

繼停止維護AOSP開源項目后,谷歌母公司Alphabet近日被曝在其安卓系統(tǒng)(Android)、Pixel手機以及Chrome瀏覽器等部門裁員數(shù)百人。這一舉措引發(fā)了業(yè)界的廣泛關注,也引發(fā)了對谷歌未來業(yè)務布局的諸多猜測。

關鍵字: 谷歌 AOSP Android 裁員

在本教程中,我們將使用Capacitor 6、Angular和TypeScript構建一個Android應用程序,該應用程序通過串行端口連接到BleuIO USB加密狗。該應用程序允許用戶直接從Android設備發(fā)送和接...

關鍵字: Android USB 電容器 BLE設備

早前媒體報道谷歌將停止維護Android開源項目(AOSP),將Android開發(fā)全面轉向內部閉源分支,目前這一消息已經得到谷歌官方確認。

關鍵字: 谷歌 Android 開源

本項目演示了如何通過OTG (on - go) USB在Android設備上使用BleuIO USB加密狗作為串行端口。使用電容器6和@adeunis/電容器-串行插件,我們建立串行連接,發(fā)送AT命令,并實時讀取響應。該...

關鍵字: 電容器 Android 傳感器 微控制器 嵌入式系統(tǒng)

羅德與施瓦茨(以下簡稱“R&S”)和全球領先的GNSS模塊供應商u-blox合作,成功驗證了u-blox最新的汽車GNSS模塊。該驗證基于R&S SMBV100B GNSS模擬器的自動化測試解決方案,符合最新發(fā)布的中國G...

關鍵字: 車載導航模塊 模擬器

在Linux操作系統(tǒng)中,Android Debug Bridge(ADB)是一個功能強大的命令行工具,它允許開發(fā)者在計算機和Android設備之間建立通信,從而進行調試、管理、安裝應用等操作。本文將詳細介紹在Linux系...

關鍵字: Linux系統(tǒng) Android Debug ADB

隨著Android操作系統(tǒng)的進步,智能手機的使用日益增加。隨后,有報道稱,惡意個人和黑客利用 Android 提供的漏洞來訪問用戶珍視的數(shù)據(jù)。例如,此類威脅包括 2021 年針對 Android 設備發(fā)布的 Flubot...

關鍵字: Android 惡意軟件
關閉