Static interface methods are only supported starting with Android N (--min-api 24)

Static interface methods are only supported starting with Android N (--min-api 24)
错误解决方案:

build
anroid {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

你可能感兴趣的:(Static interface methods are only supported starting with Android N (--min-api 24))