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