DEV Community

ck1703
ck1703

Posted on

D8: An API level of 31 is not supported by this compiler. Please use an API level of 30 or earlier

i am building application for Android 12 device. JDk used ; 11. my gradle file looks like

minSdkVersion 31
buildToolsVersion "31.0.0"
compileSdkVersion 31
targetSdkVersion 31

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_11
}

Still seeing D8: An API level of 31 is not supported by this compiler. Please use an API level of 30 or earlier

ALso tried with 8. still same issue is seen

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

Top comments (0)