【问题标题】:Android Virtual Device Not Running AppAndroid 虚拟设备未运行应用程序
【发布时间】:2013-06-09 19:29:08
【问题描述】:

我是 Android 应用开发的新手。我创建了一个带有 Hello world! 文本视图的应用程序。我在 Nexus 7 和 Nexus S 虚拟设备上启动了该应用程序。在两台设备上,它都加载了操作系统,但找不到该应用程序。它没有启动,并且不在应用程序视图中。我在哪里可以找到它?

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!

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

【问题讨论】:

标签: java android android-emulator


【解决方案1】:

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

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

目标平台:目前Android 2.2

屏幕信息:中等大小,高密度

没有键盘或 DPad 有轨迹球

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

在 Eclipse 中,启动 Android SDK 和 AVD Manager

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

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

将 AVD 命名为:“NexusOne”

选择目标:“Google APIs API Level 8”

输入 SD 卡大小:“4GB”

输入皮肤细节:“WVGA800” (800×480)

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

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

保存 AVD

希望这可行。:)

【讨论】:

    【解决方案2】:

    我遇到了同样的问题。当我创建新的虚拟设备时,我解决了它。起初在设备日志中我选择了 '5.4"' 但在我选择 Nexus 7 之后。我不知道为什么,但这解决了我的问题,并且在运行 android 应用程序后它显示在虚拟设备中。

    【讨论】:

      【解决方案3】:

      启动模拟器后,您需要选择您的应用项目并运行它。这将在模拟器上安装并启动应用程序。

      请看这里: http://developer.android.com/tools/building/building-eclipse.html#RunningOnEmulatorEclipse

      【讨论】:

      • 它说明了菜单栏中的“运行”菜单,但我的菜单栏在模拟器运行时只有 Eclipse:icap.me/i/ajvXbEGi6j.png
      猜你喜欢
      • 2015-03-31
      • 2015-12-28
      • 1970-01-01
      • 1970-01-01
      • 2018-01-08
      • 1970-01-01
      • 2023-02-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多