錯誤提示1
fatal: branch 'stable' has not been signed
首先檢查repo腳本里“REPO_URL”的值是否正確。這個值代表repo的版本庫地址,而不是android源碼的android地址。
確認無誤後,將repo腳本里“REPO_URL”的https改爲http。
錯誤提示2
fatal: remote error: SSL is required
或者
HTTP 400 (Bad Request: Bad request syntax or unsupported method)
如果使用Gmail的驗證獲取代碼,repo init 的時候必須使用https連接,不能使用http連接,否則報錯。
通過Gmail的驗證獲取代碼獲取代碼,參見
http://source.android.com/source/downloading.html裏的
Using authentication 部分。
amd64編譯需要的包:
$ sudo apt-get install lib32ncurses5-dev zlib1g-dev flex libx11-dev gperf g++-multilib g++-4.3-multilib bison
編譯前,除了將gcc降級到4.3外,g++,cpp都要降級到4.3。
降級方法:
$ apt-get install XXX-4.3
$ rm /usr/bin/XXX
$ ln -s /usr/bin/XXX-4.3 /usr/bin/XXX