Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to install *.apk on device 'emulator-5554': EOF

The project I tried to run is set to minSDK level 7. I have gotten the above error message when running Android virtual device-5554(the other devices work well). It is working so slowly, and taking too much time to get home screen not even run. At the end, it gives this error :

Failed to install *.apk on device 'emulator-5554': EOF

I restarted my computer and Eclipse several times, as well as clean projects. I also tried this Why is the Android emulator so slow? How can we speed up the Android emulator? to get it fixed. Yesterday, it was working pretty well. Now it is so sluggish.

Any suggestion or help? Thank you

like image 210
Thomas Avatar asked Jun 16 '11 18:06

Thomas


2 Answers

I've ran into this problem many times. Try each of these steps after each step run the APK file if it doesn't work move to the next step:

  1. Run it again. (simply try rerunning it).
  2. Project->Clean (clean the project plus any projects that it relies on).
  3. Right click project in the package explorer then close it. Then close Eclipse. Then reopen both.
  4. Same as the previous step plus Project->Clean.
  5. Restart the AVD.
  6. Delete the AVD. Then go into the folder that holds the AVD in the Android-Sdk folder and delete anything with the AVD's name (a file plus a folder). You may have to restart your computer to get it to delete. Create a new AVD.
like image 182
Lokiare Avatar answered Sep 23 '22 15:09

Lokiare


Run the next command:

adb kill-server adb start-server 

Is possible that drawn the next messages DeviceMonitor]Connection attempts: 1 DeviceMonitor]Connection attempts:2

like image 35
dmotta Avatar answered Sep 23 '22 15:09

dmotta