Closed weltonpagassini closed 5 years ago
Can you explain the error? How did you get the error and please share the log. Because the library support API 14+
Same here. To reproduce, just add the library and run the sample code in onCreate. Gradle throws the following error:
Invoke-customs are only supported starting with Android O (--min-api 26) Message{kind=ERROR, text=Invoke-customs are only supported starting with Android O (--min-api 26), sources=[Unknown source file], tool name=Optional.of(D8)}
I have faced this problem, when I had deleted compileOptions from build.gradle of sample project. To solve this issue, you can add following to app/build.gradle.
android {
// ........
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
When testing receives the error of the minimum version of the API in 26