erkutaras / ShowcaseView

ShowcaseView library for Android
Apache License 2.0
231 stars 41 forks source link

Minimum API 26? #10

Closed weltonpagassini closed 5 years ago

weltonpagassini commented 5 years ago

When testing receives the error of the minimum version of the API in 26

erkutaras commented 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+

mo-tion commented 5 years ago

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)}

erkutaras commented 5 years ago

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
    }
}