Failed to install *.apk on device *: timeout
可能項目越做越大吧(其實是圖片多^-^),到了后面每次調試安裝時都出現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 ofC:\Program Files\), copy them to another spot that does not have spaces.
很明顯是說目錄里面不要有空格,排除
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的Failed to install *.apk on device *: timeout的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java.io.IOException:
- 下一篇: Failed to install UT