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

Follow Android 007 and get the full set of Android development learning materials for free
Android Studio compiler error reporting:
Error: Invoke-customs are only supported starting with Android O (–min-api 26)
Solutions:
Add under Android node in build.gradle file:

compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }


Summary of the Android development tutorial series
A preliminary study on the android
Install development tools
Create your first Android project
Developing language learning
Kotlin language foundation
UI control learning series
UI control _TextView
UI control _EditText
UI control _Button
UI control _ImageView
UI control _RadioButton
UI control _CheckBox
UI control _ProgressBar

Read More: