Android虚拟机报错解决方法

  1. Android 2.3.3    
  2. Eclipse Version: 3.7.0    
  3. Console   

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

Java代码  收藏代码
  1. [2012-02-17 15:01:28 - tmall] ------------------------------  
  2. [2012-02-17 15:01:28 - tmall] Android Launch!  
  3. [2012-02-17 15:01:28 - tmall] adb is running normally.  
  4. [2012-02-17 15:01:28 - tmall] Performing com.tmall.nokia.Start activity launch  
  5. [2012-02-17 15:01:28 - tmall] Automatic Target Mode: launching new emulator with compatible AVD 'jinhua'  
  6. [2012-02-17 15:01:28 - tmall] Launching a new emulator with Virtual Device 'jinhua'  
  7. [2012-02-17 15:01:30 - Emulator] emulator: emulator window was out of view and was recentred  
  8. [2012-02-17 15:01:30 - Emulator]   
  9. [2012-02-17 15:01:30 - tmall] New emulator found: emulator-5554  
  10. [2012-02-17 15:01:30 - tmall] Waiting for HOME ('android.process.acore') to be launched...  
  11. [2012-02-17 15:01:30 - Emulator] Unknown savevm section type 95  
  12. [2012-02-17 15:02:00 - tmall] HOME is up on device 'emulator-5554'  
  13. [2012-02-17 15:02:00 - tmall] Uploading tmallnokia.apk onto device 'emulator-5554'  
  14. [2012-02-17 15:02:02 - tmall] Installing tmallnokia.apk...  
  15. [2012-02-17 15:02:29 - tmall] Success!  
  16. [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

Java代码  收藏代码
  1. [2012-02-17 16:33:43 - tmall] ------------------------------  
  2. [2012-02-17 16:33:43 - tmall] Android Launch!  
  3. [2012-02-17 16:33:43 - tmall] adb is running normally.  
  4. [2012-02-17 16:33:43 - tmall] Performing com.tmall.nokia.Start activity launch  
  5. [2012-02-17 16:33:43 - tmall] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'tmall'  
  6. [2012-02-17 16:33:43 - tmall] Uploading tmallnokia.apk onto device 'emulator-5554'  
  7. [2012-02-17 16:33:44 - tmall] Failed to install tmallnokia.apk on device 'emulator-5554': Connection refused: connect  
  8. [2012-02-17 16:33:44 - tmall] java.net.ConnectException: Connection refused: connect  
  9. [2012-02-17 16:33:44 - tmall] Launch canceled!  

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

Java代码  收藏代码
  1. [2012-02-17 14:54:10 - tmall] ------------------------------  
  2. [2012-02-17 14:54:10 - tmall] Android Launch!  
  3. [2012-02-17 14:54:10 - tmall] adb is running normally.  
  4. [2012-02-17 14:54:10 - tmall] Performing com.tmall.nokia.Start activity launch  
  5. [2012-02-17 14:54:10 - tmall] Automatic Target Mode: launching new emulator with compatible AVD 'tmall'  
  6. [2012-02-17 14:54:10 - tmall] Launching a new emulator with Virtual Device 'tmall'  
  7. [2012-02-17 14:54:16 - Emulator] emulator: emulator window was out of view and was recentred  
  8. [2012-02-17 14:54:16 - Emulator]   
  9. [2012-02-17 14:54:16 - tmall] New emulator found: emulator-5554  
  10. [2012-02-17 14:54:16 - tmall] Waiting for HOME ('android.process.acore') to be launched...  
  11. [2012-02-17 14:54:16 - Emulator] Unknown savevm section type 95  
  12. [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.

Java代码  收藏代码
  1. [2012-02-17 17:30:47 - tmall] ------------------------------  
  2. [2012-02-17 17:30:47 - tmall] Android Launch!  
  3. [2012-02-17 17:30:47 - tmall] The connection to adb is down, and a severe error has occured.  
  4. [2012-02-17 17:30:47 - tmall] You must restart adb and Eclipse.  
  5. [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

Java代码  收藏代码
  1. [2012-02-17 11:11:55 - tmall] ------------------------------  
  2. [2012-02-17 11:11:55 - tmall] Android Launch!  
  3. [2012-02-17 11:11:55 - tmall] adb is running normally.  
  4. [2012-02-17 11:11:55 - tmall] Performing com.tmall.nokia.Start activity launch  
  5. [2012-02-17 11:11:55 - tmall] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'tmall'  
  6. [2012-02-17 11:11:55 - tmall] Uploading tmallnokia.apk onto device 'emulator-5554'  
  7. [2012-02-17 11:12:01 - tmall] Failed to install tmallnokia.apk on device 'emulator-5554': timeout  
  8. [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!

Java代码  收藏代码
  1. [2012-02-17 15:00:22 - tmall] ------------------------------  
  2. [2012-02-17 15:00:22 - tmall] Android Launch!  
  3. [2012-02-17 15:00:22 - tmall] adb is running normally.  
  4. [2012-02-17 15:00:22 - tmall] Performing com.tmall.nokia.Start activity launch  
  5. [2012-02-17 15:00:22 - tmall] Automatic Target Mode: launching new emulator with compatible AVD 'tmall'  
  6. [2012-02-17 15:00:22 - tmall] Launching a new emulator with Virtual Device 'tmall'  
  7. [2012-02-17 15:00:25 - Emulator] WARNING: Data partition already in use. Changes will not persist!  
  8. [2012-02-17 15:00:25 - Emulator] WARNING: SD Card image already in use: C:\Documents and Settings\Administrator\.android\avd\tmallavd/sdcard.img  
  9. [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?

Java代码  收藏代码
  1. [2012-02-27 14:09:25 - tmall] ------------------------------  
  2. [2012-02-27 14:09:25 - tmall] Android Launch!  
  3. [2012-02-27 14:09:25 - tmall] adb is running normally.  
  4. [2012-02-27 14:09:25 - tmall] Performing com.tmall.ad.Start activity launch  
  5. [2012-02-27 14:09:25 - tmall] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'tmall'  
  6. [2012-02-27 14:09:25 - tmall] Uploading tmall.apk onto device 'emulator-5554'  
  7. [2012-02-27 14:09:27 - tmall] Installing tmall.apk...  
  8. [2012-02-27 14:10:24 - tmall] Success!  
  9. [2012-02-27 14:10:25 - tmall] Starting activity com.tmall.ad.Start on device emulator-5554  
  10. [2012-02-27 14:10:28 - tmall] Device not ready. Waiting 3 seconds before next attempt.  
  11. [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!

Java代码  收藏代码
  1. [2012-03-02 11:22:34 - Logcat]null  
  2. com.android.ddmlib.TimeoutException  
  3.     at com.android.ddmlib.AdbHelper.read(AdbHelper.java:648)  
  4.     at com.android.ddmlib.AdbHelper.read(AdbHelper.java:616)  
  5.     at com.android.ddmlib.AdbHelper.readAdbResponse(AdbHelper.java:216)  
  6.     at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:378)  
  7.     at com.android.ddmlib.Device.executeShellCommand(Device.java:284)  
  8.     at com.android.ddmuilib.logcat.LogPanel$3.run(LogPanel.java:527)  
  9.   
  10. [2012-03-02 11:23:09 - DeviceMonitor]Sending jdwp tracking request failed!  

8、  Installation error: INSTALL_FAILED_INSUFFICIENT_STORAG

Java代码  收藏代码
  1. [2012-03-02 17:10:58 - tmall] ------------------------------  
  2. [2012-03-02 17:10:58 - tmall] Android Launch!  
  3. [2012-03-02 17:10:58 - tmall] adb is running normally.  
  4. [2012-03-02 17:10:58 - tmall] Performing com.tmall.nokia.Start activity launch  
  5. [2012-03-02 17:10:58 - tmall] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'jinhua'  
  6. [2012-03-02 17:10:58 - tmall] Uploading tmall.apk onto device 'emulator-5554'  
  7. [2012-03-02 17:11:00 - tmall] Installing tmall.apk...  
  8. [2012-03-02 17:11:13 - tmall] Success!  
  9. [2012-03-02 17:11:14 - tmall] Starting activity com.tmall.nokia.Start on device emulator-5554  
  10. [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 }  
  11. [2012-03-02 17:11:17 - tmall] Attempting to connect debugger to 'com.tmall.nokia' on port 8634  
  12. [2012-03-02 17:11:19 - tmall] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE  
  13. [2012-03-02 17:11:19 - tmall] Please check logcat output for more details.  
  14. [2012-03-02 17:11:19 - tmall] Launch canceled!  

 

9、java.io.IOException: EOF

Java代码  收藏代码
  1. [2012-03-03 11:33:28 - tmall] ------------------------------  
  2. [2012-03-03 11:33:28 - tmall] Android Launch!  
  3. [2012-03-03 11:33:28 - tmall] adb is running normally.  
  4. [2012-03-03 11:33:28 - tmall] Performing com.tmall.nokia.Start activity launch  
  5. [2012-03-03 11:33:28 - tmall] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'tmall'  
  6. [2012-03-03 11:33:28 - tmall] Uploading tmall.apk onto device 'emulator-5554'  
  7. [2012-03-03 11:33:30 - tmall] Failed to install tmall.apk on device 'emulator-5554': EOF  
  8. [2012-03-03 11:33:30 - tmall] java.io.IOException: EOF  
  9. [2012-03-03 11:33:30 - tmall] Launch canceled!  

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

Java代码  收藏代码
  1. [2012-03-07 11:47:56 - tmall] Failed to install tmall.apk on device 'emulator-5554': device not found  
  2. [2012-03-07 11:47:56 - tmall] com.android.ddmlib.InstallException: device not found  
  3. [2012-03-07 11:47:56 - tmall] Launch canceled!  

  

 

解决办法:


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

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


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


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

posted @ 2012-07-06 15:38  OYK  阅读(7581)  评论(0编辑  收藏  举报