gpt4 book ai didi

java - 每次打开 eclipse 时都必须打开模拟器 3 次才能让应用程序运行

转载 作者:行者123 更新时间:2023-11-30 03:34:20 25 4
gpt4 key购买 nike

当我打开 eclipse 并加载所有文件并运行我的应用程序时,模拟器打开,之后我在控制台中收到错误消息。

所以当我再次关闭模拟器并再次运行该应用程序时,我在控制台中遇到了同样的错误。

最后,当我第三次运行该应用程序时,它已安装并启动了 apk。每次我打开 eclipse 时都会发生这种情况。

问题是什么?

控制台日志:

        [2013-06-01 20:10:58 - CalendarDemo] ------------------------------
[2013-06-01 20:10:58 - CalendarDemo] Android Launch!
[2013-06-01 20:10:58 - CalendarDemo] adb is running normally.
[2013-06-01 20:10:59 - CalendarDemo] Performing com.indianic.demo.calendark.CalendarActivity activity launch

[2013-06-01 20:10:59 - CalendarDemo] Automatic Target Mode: Preferred AVD '53' is not available. Launching new emulator.
[2013-06-01 20:10:59 - CalendarDemo] Launching a new emulator with Virtual Device '53'
[2013-06-01 20:11:29 - Emulator] Failed to create Context 0x3005
[2013-06-01 20:11:29 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-06-01 20:11:30 - Emulator] emulator: emulator window was out of view and was recentered
[2013-06-01 20:11:30 - Emulator]
[2013-06-01 20:11:30 - CalendarDemo] New emulator found: emulator-5554
[2013-06-01 20:11:30 - CalendarDemo] Waiting for HOME ('android.process.acore') to be launched...
[2013-06-01 20:12:46 - CalendarDemo] emulator-5554 disconnected! Cancelling 'com.indianic.demo.calendark.CalendarActivity activity launch'!
[2013-06-01 20:19:55 - CalendarDemo] ------------------------------
[2013-06-01 20:19:55 - CalendarDemo] Android Launch!
[2013-06-01 20:19:55 - CalendarDemo] adb is running normally.
[2013-06-01 20:19:55 - CalendarDemo] Performing com.indianic.demo.calendark.CalendarActivity activity launch
[2013-06-01 20:19:55 - CalendarDemo] Automatic Target Mode: Preferred AVD '53' is not available. Launching new emulator.
[2013-06-01 20:19:55 - CalendarDemo] Launching a new emulator with Virtual Device '53'
[2013-06-01 20:20:20 - Emulator] Failed to create Context 0x3005
[2013-06-01 20:20:20 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-06-01 20:20:21 - Emulator] emulator: emulator window was out of view and was recentered

[2013-06-01 20:20:21 - Emulator]
[2013-06-01 20:20:21 - CalendarDemo] New emulator found: emulator-5554
[2013-06-01 20:20:21 - CalendarDemo] Waiting for HOME ('android.process.acore') to be launched...
[2013-06-01 20:21:14 - CalendarDemo] HOME is up on device 'emulator-5554'
[2013-06-01 20:21:14 - CalendarDemo] Uploading CalendarDemo.apk onto device 'emulator-5554'
[2013-06-01 20:21:16 - CalendarDemo] Installing CalendarDemo.apk...
[2013-06-01 20:22:18 - CalendarDemo] Success!

最佳答案

试试这个

首先,启动您想要的模拟器,然后执行以下步骤,

第 1 步:右键单击您的项目 -> Run As -> Run Configurations

第 2 步: 将有 3 个选项卡,Android |目标 | Common ,点击Target

第 3 步:在 Deployment Target Selection Mode 中,选择第一个选项 Always prompt to pick device

第 4 步:点击应用,然后点击运行

结果,您将获得当前可用设备的列表,您可以选择所需的设备并可以在其上运行应用。

希望对您有所帮助!!

关于java - 每次打开 eclipse 时都必须打开模拟器 3 次才能让应用程序运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16875028/

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