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

转自:https://blog.csdn.net/csdn9228/article/details/90905430

代码添加到app的build.gradle的android节点下

compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

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