gpt4 book ai didi

java - Android 虚拟设备未运行应用程序

转载 作者:行者123 更新时间:2023-12-02 06:58:19 24 4
gpt4 key购买 nike

我是 Android 应用开发的新手。我创建了一个带有 TextView 的应用程序,其中显示 Hello world!。我在 Nexus 7 和 Nexus S 虚拟设备上启动了该应用程序。在这两种设备上,它都加载了操作系统,但无法找到该应用程序。它没有启动,也不在应用程序 View 中。在哪里可以找到它?

PS:抱歉这个新手问题;)

编辑1:我尝试从工具栏中使用Run > Run并选择Android Application,我得到了这个:

[2013-06-09 15:20:23 - SDK Manager] Warning: Ignoring build-tool '.DS_Store', not a folder.
[2013-06-09 15:27:45 - SDK Manager] Warning: Ignoring build-tool '.DS_Store', not a folder.
[2013-06-09 15:31:48 - SDK Manager] Warning: Ignoring build-tool '.DS_Store', not a folder.
[2013-06-09 15:34:55 - HelloWorld] ------------------------------
[2013-06-09 15:34:55 - HelloWorld] Android Launch!
[2013-06-09 15:34:55 - HelloWorld] adb is running normally.
[2013-06-09 15:34:55 - HelloWorld] Performing me.pogostick29.helloworld.MainActivity activity launch
[2013-06-09 15:34:56 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'Nexus7'
[2013-06-09 15:34:56 - HelloWorld] Launching a new emulator with Virtual Device 'Nexus7'
[2013-06-09 15:35:04 - Emulator] 2013-06-09 15:35:04.712 emulator64-arm[570:f07] Error loading /Library/ScriptingAdditions/XBurn.osax/Contents/MacOS/XBurn: dlopen(/Library/ScriptingAdditions/XBurn.osax/Contents/MacOS/XBurn, 262): no suitable image found. Did find:
[2013-06-09 15:35:04 - HelloWorld] New emulator found: emulator-5554
[2013-06-09 15:35:04 - Emulator] /Library/ScriptingAdditions/XBurn.osax/Contents/MacOS/XBurn: mach-o, but wrong architecture
[2013-06-09 15:35:04 - Emulator] emulator64-arm: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/XBurn.osax" declares no loadable handlers.
[2013-06-09 15:35:04 - HelloWorld] Waiting for HOME ('android.process.acore') to be launched...
[2013-06-09 15:35:04 - Emulator] 2013-06-09 15:35:04.738 emulator64-arm[570:f07] Loading Maximizer into bundle: (null)
[2013-06-09 15:35:58 - HelloWorld] HOME is up on device 'emulator-5554'
[2013-06-09 15:35:58 - HelloWorld] Uploading HelloWorld.apk onto device 'emulator-5554'
[2013-06-09 15:35:58 - HelloWorld] Installing HelloWorld.apk...
[2013-06-09 15:37:16 - HelloWorld] Success!
[2013-06-09 15:37:16 - HelloWorld] Failed to install HelloWorld.apk on device 'emulator-5554': device not found
[2013-06-09 15:37:16 - HelloWorld] com.android.ddmlib.InstallException: device not found
[2013-06-09 15:37:16 - HelloWorld] Launch canceled!

也许我太早停止了模拟器?

最佳答案

Google 的 Nexus One 是一款功能强大的手机,搭载最新的 Android 版本。作为一款最初由谷歌直接销售的设备,这款手机似乎更新最快。它还具有漂亮的屏幕并且运行速度相当快,尤其是在 Android 2.2 上。

从模拟器的角度来看,该设备的重要规范是:

目标平台:目前Android 2.2

屏幕信息:中等尺寸,高密度

没有键盘或方向键有轨迹球

因此,让我们创建一个名为 NexusOne 的 AVD 配置:

在 Eclipse 中,启动 Android SDK 和 AVD 管理器

从左侧选项中选择“虚拟设备”

单击“新建”按钮创建新的 AVD 配置

将 AVD 命名为:“NexusOne”

选择目标:“Google API API 级别 8”

输入SD卡大小:“4GB”

输入皮肤详细信息:“WVGA800”(800×480)

为抽象 LCD 密度添加硬件属性:“252”

为 DPad 支持添加另一个硬件属性:“否”

保存 AVD

希望这有效。:)

关于java - Android 虚拟设备未运行应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17013327/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com