How to download google source code for android

后端 未结 3 641
礼貌的吻别
礼貌的吻别 2021-02-06 11:44

As you know, there is a list of several hundred projects in https://android.googlesource.com/. I\'d like to download them all in windows machine. According to Google\'s document

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-06 12:09

    If you consider, as an example, this other program "sympy" which also needs git bash and python, it is only a matter to add python to your PATH prior to launching the git bash session.

    Install Python from:

    http://python.org/download/

    by downloading the "Python 2.7 Windows installer" (or Python 2.6 or 2.5) and running it.
    Add python directory to your system environment path variable
    (My Computer -> Advanced -> Environment Variables -> Path -> Edit).

    Note that the repo script itself must be in the path, as mentioned in the Version Control page of android:

    Repo is a repository management tool that we built on top of Git. Repo unifies the many Git repositories when necessary, does the uploads to our revision control system, and automates parts of the Android development workflow.
    Repo is not meant to replace Git, only to make it easier to work with Git in the context of Android.
    The repo command is an executable Python script that you can put anywhere in your path.

提交回复
热议问题