Execution failed for task ‘:app:checkReleaseDuplicateClasses’

This is due to a dependency update. Some lib you’re using had a loose dependency specified and installs kotlin 1.8.0 dependencies. It was the case for me here.

You can fix it by adding kotlinVersion in your build.gradle config:

buildscript {
    ext {
        buildToolsVersion = "32.0.0"
        minSdkVersion = 21
        compileSdkVersion = 33
        targetSdkVersion = 32
        androidXBrowser = "1.4.0"
        
        kotlinVersion = "1.8.0"
    }
...
}

Leave a Comment