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]nullcom.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报的错误都可以得到解决。