`
debuglog
  • 浏览: 196455 次
社区版块
存档分类
最新评论

Android虚拟机,控制台Console报错几例及解决办法

阅读更多
Android 2.3.3  
Eclipse Version: 3.7.0  
Console 

 Eclipse下的Android虚拟机,运行应用,正常的控制台信息Console一般如下:

[2012-02-17 15:01:28 - tmall] ------------------------------
[2012-02-17 15:01:28 - tmall] Android Launch!
[2012-02-17 15:01:28 - tmall] adb is running normally.
[2012-02-17 15:01:28 - tmall] Performing com.tmall.nokia.Start activity launch
[2012-02-17 15:01:28 - tmall] Automatic Target Mode: launching new emulator with compatible AVD 'jinhua'
[2012-02-17 15:01:28 - tmall] Launching a new emulator with Virtual Device 'jinhua'
[2012-02-17 15:01:30 - Emulator] emulator: emulator window was out of view and was recentred
[2012-02-17 15:01:30 - Emulator] 
[2012-02-17 15:01:30 - tmall] New emulator found: emulator-5554
[2012-02-17 15:01:30 - tmall] Waiting for HOME ('android.process.acore') to be launched...
[2012-02-17 15:01:30 - Emulator] Unknown savevm section type 95
[2012-02-17 15:02:00 - tmall] HOME is up on device 'emulator-5554'
[2012-02-17 15:02:00 - tmall] Uploading tmallnokia.apk onto device 'emulator-5554'
[2012-02-17 15:02:02 - tmall] Installing tmallnokia.apk...
[2012-02-17 15:02:29 - tmall] Success!
[2012-02-17 15:02:29 - tmall] Starting activity com.tmall.nokia.Start on device emulator-5554

 
但是,控制台Console也经常会报错,下面搜集了常见的几种报错:


1、Failed to install tmallnokia.apk on device 'emulator-5554': Connection refused: connect

[2012-02-17 16:33:43 - tmall] ------------------------------
[2012-02-17 16:33:43 - tmall] Android Launch!
[2012-02-17 16:33:43 - tmall] adb is running normally.
[2012-02-17 16:33:43 - tmall] Performing com.tmall.nokia.Start activity launch
[2012-02-17 16:33:43 - tmall] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'tmall'
[2012-02-17 16:33:43 - tmall] Uploading tmallnokia.apk onto device 'emulator-5554'
[2012-02-17 16:33:44 - tmall] Failed to install tmallnokia.apk on device 'emulator-5554': Connection refused: connect
[2012-02-17 16:33:44 - tmall] java.net.ConnectException: Connection refused: connect
[2012-02-17 16:33:44 - tmall] Launch canceled!

 
2、emulator: emulator window was out of view and was recentred

[2012-02-17 14:54:10 - tmall] ------------------------------
[2012-02-17 14:54:10 - tmall] Android Launch!
[2012-02-17 14:54:10 - tmall] adb is running normally.
[2012-02-17 14:54:10 - tmall] Performing com.tmall.nokia.Start activity launch
[2012-02-17 14:54:10 - tmall] Automatic Target Mode: launching new emulator with compatible AVD 'tmall'
[2012-02-17 14:54:10 - tmall] Launching a new emulator with Virtual Device 'tmall'
[2012-02-17 14:54:16 - Emulator] emulator: emulator window was out of view and was recentred
[2012-02-17 14:54:16 - Emulator] 
[2012-02-17 14:54:16 - tmall] New emulator found: emulator-5554
[2012-02-17 14:54:16 - tmall] Waiting for HOME ('android.process.acore') to be launched...
[2012-02-17 14:54:16 - Emulator] Unknown savevm section type 95
[2012-02-17 14:55:32 - tmall] emulator-5554 disconnected! Cancelling 'com.tmall.nokia.Start activity launch'!

 
3、The connection to adb is down, and a severe error has occured.

[2012-02-17 17:30:47 - tmall] ------------------------------
[2012-02-17 17:30:47 - tmall] Android Launch!
[2012-02-17 17:30:47 - tmall] The connection to adb is down, and a severe error has occured.
[2012-02-17 17:30:47 - tmall] You must restart adb and Eclipse.
[2012-02-17 17:30:47 - tmall] Please ensure that adb is correctly located 

 
4、Failed to install tmallnokia.apk on device 'emulator-5554': timeout

[2012-02-17 11:11:55 - tmall] ------------------------------
[2012-02-17 11:11:55 - tmall] Android Launch!
[2012-02-17 11:11:55 - tmall] adb is running normally.
[2012-02-17 11:11:55 - tmall] Performing com.tmall.nokia.Start activity launch
[2012-02-17 11:11:55 - tmall] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'tmall'
[2012-02-17 11:11:55 - tmall] Uploading tmallnokia.apk onto device 'emulator-5554'
[2012-02-17 11:12:01 - tmall] Failed to install tmallnokia.apk on device 'emulator-5554': timeout
[2012-02-17 11:12:01 - tmall] Launch canceled!at 'D:\develop\Android\android-sdk\platform-tools\adb.exe' and can be executed.

 
5、WARNING: Data partition already in use. Changes will not persist!

[2012-02-17 15:00:22 - tmall] ------------------------------
[2012-02-17 15:00:22 - tmall] Android Launch!
[2012-02-17 15:00:22 - tmall] adb is running normally.
[2012-02-17 15:00:22 - tmall] Performing com.tmall.nokia.Start activity launch
[2012-02-17 15:00:22 - tmall] Automatic Target Mode: launching new emulator with compatible AVD 'tmall'
[2012-02-17 15:00:22 - tmall] Launching a new emulator with Virtual Device 'tmall'
[2012-02-17 15:00:25 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2012-02-17 15:00:25 - Emulator] WARNING: SD Card image already in use: C:\Documents and Settings\Administrator\.android\avd\tmallavd/sdcard.img
[2012-02-17 15:00:25 - Emulator] ko:Snapshot storage already in use: C:\Documents and Settings\Administrator\.android\avd\tmall.avd/snapshots.img

 

 

6、Can't connect to activity manager; is the system running?

[2012-02-27 14:09:25 - tmall] ------------------------------
[2012-02-27 14:09:25 - tmall] Android Launch!
[2012-02-27 14:09:25 - tmall] adb is running normally.
[2012-02-27 14:09:25 - tmall] Performing com.tmall.ad.Start activity launch
[2012-02-27 14:09:25 - tmall] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'tmall'
[2012-02-27 14:09:25 - tmall] Uploading tmall.apk onto device 'emulator-5554'
[2012-02-27 14:09:27 - tmall] Installing tmall.apk...
[2012-02-27 14:10:24 - tmall] Success!
[2012-02-27 14:10:25 - tmall] Starting activity com.tmall.ad.Start on device emulator-5554
[2012-02-27 14:10:28 - tmall] Device not ready. Waiting 3 seconds before next attempt.
[2012-02-27 14:10:46 - tmall] ActivityManager: android.util.AndroidException: Can't connect to activity manager; is the system running?

7、DeviceMonitor]Sending jdwp tracking request failed!

[2012-03-02 11:22:34 - Logcat]null
com.android.ddmlib.TimeoutException
	at com.android.ddmlib.AdbHelper.read(AdbHelper.java:648)
	at com.android.ddmlib.AdbHelper.read(AdbHelper.java:616)
	at com.android.ddmlib.AdbHelper.readAdbResponse(AdbHelper.java:216)
	at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:378)
	at com.android.ddmlib.Device.executeShellCommand(Device.java:284)
	at com.android.ddmuilib.logcat.LogPanel$3.run(LogPanel.java:527)

[2012-03-02 11:23:09 - DeviceMonitor]Sending jdwp tracking request failed!

8、  Installation error: INSTALL_FAILED_INSUFFICIENT_STORAG

[2012-03-02 17:10:58 - tmall] ------------------------------
[2012-03-02 17:10:58 - tmall] Android Launch!
[2012-03-02 17:10:58 - tmall] adb is running normally.
[2012-03-02 17:10:58 - tmall] Performing com.tmall.nokia.Start activity launch
[2012-03-02 17:10:58 - tmall] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'jinhua'
[2012-03-02 17:10:58 - tmall] Uploading tmall.apk onto device 'emulator-5554'
[2012-03-02 17:11:00 - tmall] Installing tmall.apk...
[2012-03-02 17:11:13 - tmall] Success!
[2012-03-02 17:11:14 - tmall] Starting activity com.tmall.nokia.Start on device emulator-5554
[2012-03-02 17:11:15 - tmall] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.tmall.nokia/.Start }
[2012-03-02 17:11:17 - tmall] Attempting to connect debugger to 'com.tmall.nokia' on port 8634
[2012-03-02 17:11:19 - tmall] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
[2012-03-02 17:11:19 - tmall] Please check logcat output for more details.
[2012-03-02 17:11:19 - tmall] Launch canceled!

 

9、java.io.IOException: EOF

[2012-03-03 11:33:28 - tmall] ------------------------------
[2012-03-03 11:33:28 - tmall] Android Launch!
[2012-03-03 11:33:28 - tmall] adb is running normally.
[2012-03-03 11:33:28 - tmall] Performing com.tmall.nokia.Start activity launch
[2012-03-03 11:33:28 - tmall] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'tmall'
[2012-03-03 11:33:28 - tmall] Uploading tmall.apk onto device 'emulator-5554'
[2012-03-03 11:33:30 - tmall] Failed to install tmall.apk on device 'emulator-5554': EOF
[2012-03-03 11:33:30 - tmall] java.io.IOException: EOF
[2012-03-03 11:33:30 - tmall] Launch canceled!

10、com.android.ddmlib.InstallException: device not found

[2012-03-07 11:47:56 - tmall] Failed to install tmall.apk on device 'emulator-5554': device not found
[2012-03-07 11:47:56 - tmall] com.android.ddmlib.InstallException: device not found
[2012-03-07 11:47:56 - tmall] Launch canceled!

  

 

解决办法:


对上述报错,一般的处理方式是

1、关闭虚拟机,再重新Run应用
  关闭虚拟机,直接在任务栏上右键点击虚拟机程序,在弹出菜单中左键点击“关闭”,等待虚拟机程序退出。


2、如果按第一点操作还是无法正常工作。需关闭虚拟机,退出Eclipse,并在任务管理器中结束“adb.exe”进程(如果有的话)。


按照上述办法操作,大多数Run应用,控制台Console报的错误都可以得到解决。

1
0
分享到:
评论

相关推荐

    解决Win 7下 Android虚拟机版本报错问题

    总之,解决Win 7下Android虚拟机版本报错问题通常需要对系统环境进行诊断和优化,包括更新系统文件、配置AVD参数以及确保必要的硬件支持。在进行任何修改之前,始终做好数据备份,遵循安全最佳实践,以防止不必要的...

    深入解析ANDROID虚拟机

    本书十三个章节,分别讲解了android系统基础知识,android系统的结构和核心框架,Java虚拟机和Dalvik虚拟机的知识,实现程序编译和调试,Dalvik的运作流程,DEX优化和安全管理,Android虚拟机生命周期的管理和内存...

    虚拟机报错问题解决

    解决虚拟机报错问题,解决完好虚拟机不能运行问题

    vmware虚拟机克隆后报错error no suitable device found问题解决

    使用vmware虚拟机克隆机器后,network服务报错error no suitable device found问题解决

    本地虚拟机安装CentOS报错 解决方案

    加载CentOS的ISO文件开始安装时,安装文件要求检测I/O设备,选“skip”后,本应进入安装程序的图形界面,但是却报错误

    android ApiDemos不报错版本

    这个不报错版本确保了无论是通过虚拟机还是真机运行,都能顺畅无阻,对于初、中、高级Android工程师来说,都是提升技能的理想工具。 一、Android ApiDemos的核心价值 ApiDemos的主要价值在于它详尽地展示了Android...

    打开虚拟机提示vmdk报错.doc

    用vmware打开linux操作系统时 会提示vmdk文件报错 删除lck文件候打开 发现还会继续生成vmdk文件

    Android虚拟机ART

    **Android虚拟机ART详解** Android运行环境的核心组成部分之一就是虚拟机,从早期的Dalvik到现在的Android RunTime(ART),这一进化过程极大地提升了Android应用的性能和效率。本文将深入探讨ART的工作原理、优势...

    Android虚拟机加速器 intel.7z

    为了解决这个问题,“Android虚拟机加速器 intel.7z”应运而生,其目标是通过优化技术提升虚拟机的运行效率,从而减少延迟和卡顿现象。 这个加速器主要针对Intel处理器进行了优化,因为Intel处理器广泛应用于个人...

    虚拟机控制台

    sun公司,虚拟电脑控制台,在该程序下可以方便的安装LINUX虚拟机进行软件开发而不用改变主机的操作系统.

    深入解析Android虚拟机(钟世礼)

    《深入解析Android虚拟机》是由钟世礼编著的一本专为Android开发者深入理解Android虚拟机(Dalvik或ART)而撰写的书籍。在Android系统中,虚拟机扮演着至关重要的角色,它负责运行应用程序、内存管理、垃圾回收以及...

    XP安装虚拟机(LINUX教程及虚拟机)(ha_vmware_cn-v6.03)

    这个教程“xp安linux.txt”很可能详细阐述了上述步骤,包括可能遇到的问题及解决方案。在实际操作中,应仔细阅读文档,遵循每一步骤,遇到问题可以查阅VMware和Linux社区的在线资源,或者寻求专业技术支持。记住,...

    安装Android虚拟机最全过程

    Android 虚拟机是 Android 操作系统的模拟环境,可以在计算机上运行 Android 应用程序,INSTALLATION 安卓虚拟机通常包括安装虚拟机软件、创建虚拟机、安装 Android 操作系统、配置网络连接等步骤。 虚拟机软件...

    android 虚拟机安装步骤

    一步一步讲解了android虚拟机的安装和所需要的软件支持,下载完成后不需要进行升级,直接打开可用

    钟世礼-深入解析ANDROID虚拟机(带书签完整高清版).pdf

    Android系统从诞生到现在的短短几年时间里,凭借其易用性和开发的简洁性,赢得了广大开发者的支持。在整个Android系统中,Dalvik VM一直是贯穿从底层内核到高层应用开发的核心。本书循序渐进地讲解了Android虚拟机...

Global site tag (gtag.js) - Google Analytics