最近无论在公司还是在家同步Android代码,都会不断出现“remote end hung up unexpectedly”的问题。Google了一下貌似是新donut搞的鬼,老外以为世界上所有的人都拥有高速稳定的宽带网络,把重试机制干掉了。因此Python脚本修改如下
- go to the folder where you made “repo init” some days ago
- open .repo/repo/subcmds/sync.py
- correct _Fetch function (program will try to sync even without network after this change:-)) – add “while True:” at line 6, “break” at line 9, remove “sys.exit(1)” at line 11.
|
1 |
|
本文介绍了一种解决在同步Android代码过程中遇到的“remoteendhungupunexpectedly”错误的方法。通过修改Python脚本中的sync.py文件,加入重试机制来确保在网络不稳定的情况下也能顺利完成代码同步。

被折叠的 条评论
为什么被折叠?



