当我打开eclipse并加载所有文件并运行我的应用程序时,模拟器打开后我在控制台中出错。
所以当我关闭模拟器并再次运行应用程序时,我在控制台中收到同样的错误。
最后,当我运行应用程序时,第三次安装并启动apk。每当我打开日食时都会发生这种情况。
有什么问题?
控制台日志:
[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!
答案 0 :(得分:1)
试试这个
首先,启动所需的模拟器,然后执行以下步骤,
第1步:右键点击您的项目 - >运行方式 - >运行配置
第2步:将有3个标签,Android | Target | Common
,点击Target
步骤3:在部署目标选择模式中,选择第一个选项Always prompt to pick device
第4步:点击Apply
,然后点击Run
结果,您将获得当前可用设备的列表,您可以选择所需的设备并可以在其上运行应用程序。
我希望它会有所帮助!!
答案 1 :(得分:0)
转到窗口 - >偏好设置 - > Android-> DDMS。
将adb timeout的值更改为10000.
由于模拟器启动需要很长时间,因此adb超时且连接丢失 因此没有安装应用程序。