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

在app的build.gradle的android节点下添加如下代码:

        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }

image

你可能感兴趣的:(Error: Invoke-customs are only supported starting with Android O (--min-api 26))