CM的CM-12.0版本(對應Android5.0.2):html
$ repo init -u https://github.com/CyanogenMod/android.git -b cm-12.0
注意:Android5.0 之後的代碼,都須要使用OpenJDK來編譯。若是出現由於JDK版本形成的編譯錯誤,請安裝OpenJDK。java
$ sudo apt-get install openjdk-7-jdk
Ubuntu java 環境變量android
啓動eclipse是報 no java virtual machine was found after searching the following location git