很久沒玩過Android的源碼了,決定下個最新的4.0回來看看,但是notebook最新裝的是Fedora16的系統,發現有些地方和以前舊版本的要求不一樣,下面就一點一點記錄下來,免得以後忘記吧,呵呵
1. JDK 6
這個需要到sun的網站下載一個安裝即可: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html
下載完之後chmod再運行安裝
2. 最新的android源碼要求make的版本為3.81, make 3.82的版本貌似有些兼容性的問題,試了下需要做些手腳才能順利地downgrade回舊的版本
運行命令
sudo yum downgrade make --releasever=13
結果出現錯誤提示
- ====================================================================================================================================================
- Package Arch Version Repository Size
- ===================================================================================================================================================
- Downgrading:
- make i686 1:3.81-19.fc13 updates 385 k
-
- Transaction Summary
- ====================================================================================================================================================
- Downgrade 1 Package
-
- Total size: 385 k
- Is this ok [y/N]: y
- Downloading Packages:
- warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID e8e40fde: NOKEY
- Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
-
-
- The GPG keys listed for the "Fedora 13 - i386 - Updates" repository are already installed but they are not correct for this package.
- Check that the correct key URLs are configured for this repository.