简体   繁体   English

AOSP下载并移动android源代码

[英]AOSP Downloading and Moving the android source code

I have a slow & erroneous Internet connection which disconnects now & then. 我的网络连接缓慢且错误,现在然后断开连接。

So I like to know, if there is a way to download the android source directly rather than repo sync 所以我想知道,是否有办法直接下载android源代码而不是同步回购

Or If I download the source in another machine, how can I configure/setup in my machine? 或者,如果我在另一台计算机上下载源代码,如何在我的计算机上进行配置/设置?

repo sync is the officially supported method of getting Android sources. repo sync是获得Android来源的官方支持方法。 You can do repo sync on another machine and move the source to your development machine, there should be no special setup necessary for doing so, just copy the files downloaded by repo to your development machine (take care to copy all the hidden/dot files as well). 您可以在另一台机器上进行repo sync并将源移至开发机器,这样做无需进行任何特殊设置,只需将repo下载的文件复制到您的开发机器上即可(请注意将所有隐藏/点文件复制到以及)。

One option is to use the technique that Lie Ryan mentioned to get it to one machine F via a reliable Internet connection first. 一种选择是使用Lie Ryan提到的技术,首先通过可靠的Internet连接将其连接到一台机器F。 After that, you could consider using a tool such as rsync on the machine S with the slower/unreliable connection to keep the entire project tree between F & S in sync (I believe rsync supports resumption automagically, though I have never tested this). 之后,您可以考虑在计算机S上使用诸如rsync之类的工具,该工具具有较慢/不可靠的连接,以使F&S之间的整个项目树保持同步(我相信rsync自动支持恢复,尽管我从未测试过)。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM