Invoke-customs are only supported starting with Android O (--min-api 26) Message{kind=ERROR,……

在gradle.build中添加以下内容:

compileOptions {

sourceCompatibility JavaVersion.VERSION_1_8

targetCompatibility JavaVersion.VERSION_1_8

}

https://www.jianshu.com/p/434928537a90

你可能感兴趣的:(Invoke-customs are only supported starting with Android O (--min-api 26) Message{kind=ERROR,……)