Android报错:
Invoke-customs are only supported starting with Android O (--min-api 26)
解决方法:
在module的build.gradle里面增加Java编译版本控制:
android {
......
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}