How can I check out Android source code in Windows OS?

前端 未结 7 1218
没有蜡笔的小新
没有蜡笔的小新 2020-12-04 16:35

I try to search for it but I just cant. I am running Windows 7 on Lenovo G460 laptop. I tried to install Ubuntu on it but I cannot use Wireless to connect to the internet fo

7条回答
  •  Happy的楠姐
    2020-12-04 17:31

    Steps:

    1. Download Cygwin from http://cygwin.com/install.html.
    2. Install cygwin with almost all defaults. During cygwin setup, select modules curl and python (search for them) and mark them to be installed.
    3. Start cygwin.exe and go to your preferred directory (mine is D:/Android/sources/4.0/try2). Example: $: cd /cygdrive/d/Android/sources/4.0/try2

    4. Run the below instructions one by one:

      i) mkdir bin

      ii) PATH=/cygdrive/d/Android/sources/4.0/try2/bin:$PATH

      iii) curl https://storage.googleapis.com/git-repo-downloads/repo > /cygdrive/d/Android/sources/4.0/try2/bin/repo

      iv) mkdir source

      v) cd source

      vi)
      Master branch:
      repo init -u https://android.googlesource.com/platform/manifest

      4.0.1 branch for example:
      repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1

      vii) Give credentials if needed

      viii) repo sync

    Source: click here

提交回复
热议问题