將代碼添加到app的build.gradle的android節(jié)點(diǎn)下
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
將代碼添加到app的build.gradle的android節(jié)點(diǎn)下
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}