android { compileOptions { sourceCompatibility = "1.6" targetCompatibility = "1.6" }}
android {
compileOptions {
sourceCompatibility = "1.6"
targetCompatibility = "1.6"
}
默认值是1.6。这个设置会影响所有编译 java 源代码的任务。