Tag Archives: Invoke-customs are only supported starting with Android O (–min-api 26)

Android Project Error: Invoke-customs are only supported starting with Android O (–min-api 26)

Android project error: invoke customers are only supported starting with Android o (- – min API 26)

Solution:

Under the app folder, click build. Gradle

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
  targetCompatibility JavaVersion.VERSION_1_8
}

As shown in the figure below