Failed to install *.apk on device 'emulator

the project i tried to run is set to minSDK level 7. I have gottan 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 slugguish.

any suggestion or help? Thank you


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:

  • Run it again. (simply try rerunning it).
  • Project->Clean (clean the project plus any projects that it relies on).
  • Right click project in the package explorer then close it. Then close Eclipse. Then reopen both.
  • Same as the previous step plus Project->Clean.
  • Restart the AVD.
  • 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.

  • 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


    Solution:

  • Start emulator (separately) and wait until it is fully loaded.
  • Open keylock.
  • Navigate to Eclipse and run your app.
  • Cause of the problem: Android emulator hasn't loaded all its libraries which handle the installing of a new application and due to that you run into java.io.IOException: EOF

    That was causing me the problem.

    链接地址: http://www.djcxy.com/p/24690.html

    上一篇: 无法在设备上安装apk

    下一篇: 无法在设备模拟器上安装* .apk