乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      【Android】Android 4.2源碼下載(ubuntu 12.10)

       guitarhua 2013-04-25

      【Android】Android 4.2源碼下載(ubuntu 12.10)

      前沿

          最近在研究NFC,這個(gè)不同在不同版本中API的使用都不同,想看下其源碼實(shí)現(xiàn),于是乎得重新下載下android源碼了~~~

       

      完整步驟

      Installing some soft

      1 Install curl:         sudo apt-get install curl

      2 Install git-core:        sudo apt-get install git-core

       

      Installing Repo

      1 在用戶(hù)目錄下創(chuàng)建一個(gè)~/bin目錄,并添加到環(huán)境變量中(要將git軟件下載安裝在此目錄,在別的目錄運(yùn)行可能會(huì)找不到此軟件,所以要添加到環(huán)境變量中)

      $ mkdir ~/bin

      $ PATH=~/bin:$PATH 

      2 下載repo腳本并修改權(quán)限為可執(zhí)行

      $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

      $ chmod a+x ~/bin/repo

        

      Initializing a Repo client

      1 創(chuàng)建一個(gè)保存android源碼的目錄,修改為最大權(quán)限,并進(jìn)入到該目錄下

      $ mkdir /opt/android4.2

      $ sudo chmod –R 777 /opt/android4.2

      $ cd /opt/android4.2 

      2 初始化repo,并選擇要下載的分支(版本)

      $ repo init -u https://android./platform/manifest

      $ repo init -u https://android./platform/manifest -b android-4.2_r1

      備注1:在這過(guò)程中需要輸入你的姓名、郵箱等信息

      備注2:查詢(xún)android版本信息,參考 https://android./platform/manifest/+refs

       

      Getting the files

      $ repo sync

       

      問(wèn)題

      代碼下載過(guò)程中,經(jīng)常提示以下錯(cuò)誤:

      error: Failed connect to android.:443;Connection refused while accessinghttps://android./a/platform/frameworks/base/info/refs

      fatal: HTTP request failed

      error: Cannot fetch platform/tools/motodev

      error: Cannot fetch platform/frameworks/base

      error: Cannot fetch platform/prebuilts/sdk

      error: Exited sync due to fetch errors

      解決方法:編輯/etc/hosts文件

      $ vim /etc/hosts

      增加下面內(nèi)容,保存(提前保存好):

      74.125.31.82 www.

      74.125.31.82 android.

      203.208.46.172 cache.pack.google.com

      59.24.3.173cache.pack.google.com

      然后重新輸入

      $ repo sync

       

       

       

      Android4.2還算比較大,打包后大概9.5G左右,不打包14G左右

       

      Ref:

      1 Downloading the Source Tree: http://source./source/downloading.html

      2 android4.2源碼下載過(guò)程: http://blog.csdn.net/lengxibo/article/details/8299888#reply

      http:///Android/   非常好的一個(gè)鏈接,里面1.6到4.2各個(gè)版本都有,如果懶得自己下載就直接在此下載

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶(hù)發(fā)布,不代表本站觀(guān)點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶(hù) 評(píng)論公約

        類(lèi)似文章 更多