解決Android Studio編譯錯誤:Error: Invoke-customs are only supported starting with Android O (--min-api 26)

Error: Invoke-customs are only supported starting with Android O (--min-api 26)


build.gradle文件中android下增加:

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

留言