Failed to install DroidIPCam.apk on device 'emulator-5554': timeout
错误提示:
Failed to install helloworld.apk on device 'emulator-5554': timeout
或者
the user data image is used
原因:
由于模拟器已经开启而没有关闭或者非法关闭引起的。
解决方法:
删除 C:\Documents and Settings\Administrator\.android\avd\对应版本.avd
下所有以.lock结尾的文件夹。
或者
Failed to install *.apk on device *:
timeout Launch canceled!
还有一种办法:
在window->preferences->Android->DDMS->ADB connection time out (ms):
将这个值设置的大一些,默认为5000,我设置成500000,然后就OK了。
1. Cleaning the project (Project->Clean)
2. Restarting device, Eclipse, laptop, all of the above...
3. Moving the project to a location without spaces, according to Failed to install apk on device 'emulator-5554': timeout
我设置超时时间为100000,然后重启esclipe和模拟器就ok了,可是下次再调试有出现这个问题。
再尝试:
把Android SDK目录下tools和platform-tools目录加到系统PATH变量然后重启模拟器又是ok了,但是下次又出现这个问题,
最后把这个模拟器删掉,新建一个新的模拟器后,就没有这个问题了,真是折腾。