可能项目越做越大吧(其实是图片多^-^),到了后面每次调试安装时都出现Failed to install *.apk on device *: timeout
现在将这个问题整理出来,以便以后查阅。
错误出现:连接真机调试的时候如果连接太久没响应就会出现timeout
根据网上众多资料:可分为这几个解决方法
方法由简单到麻烦:
1.在window-》prensent....-》android-》设置ddms的timeout时间。这种是就最有效、最简洁的。
2.delete android里面的 apk,保证速度。不过试过一次后,真机好像变“聪明了”,也出现timeout。
3.Cleaning the project (Project->Clean),不行就重启eclipse或者android,很郁闷的是,重启后运行第一次可以。第二次就开始变慢了,也就是出现timeout
4.网上一个我没试过的方法:
Don't use spaces in your directory names. If you have files that are in such a directory (e.g., stuff inside of C:\Program Files\
), copy them to another spot that does not have spaces.
很明显是说目录里面不要有空格,排除
分享到:
相关推荐
在Android应用开发过程中,开发者经常会遇到“Failed to install .apk on device 'emulator-5554': timeout”这样的错误,这通常是由于安装APK到设备(通常是Android模拟器)时超时导致的。这个错误可能会影响开发...
二、Failed to install *.apk on device 'emulator-5554': timeout 错误 该错误是由于模拟器未关闭或非法关闭所致,解决方法是删除 C:Documents and Settings/Administrator/.android/avd 对应版本.avd 下所有以....
在给定的部分内容中提到了一个安装失败的例子:“[2013-05-30 09:54:15-TweenAnimal] Failed to install TweenAnimal.apk on device 'emulator-5554': timeout [2013-05-30 09:54:15-TweenAnimal] Launch canceled!...
2. **Failed to install helloworld.apk on device 'emulator-5554': timeout** 这个错误意味着在尝试安装APK到模拟器时超时。为了解决这个问题,你可以调整Eclipse中的ADB(Android Debug Bridge)连接超时设置: ...
INSTALL_FAILED_VERIFICATION_TIMEOUT 验证安装包超时 INSTALL_FAILED_VERIFICATION_FAILURE 验证安装包失败 INSTALL_FAILED_PACKAGE_CHANGED 应用与调用程序期望的不一致 INSTALL_FAILED_UID_CHANGED 以前安装过...
四、启动 Android 模拟器时出现 Failed to install on device ‘emulator-5554′: timeout 错误 这个错误是由于卡的原因导致启动超时。解决方法是修改 Eclipse 的 ADB 连接超时时间,设置为 10 秒以上。 五、...