How to properly connect my Kotlin android App with Mongodb Atlas Cluster?

Sadly now even the excludes in deprecated in gradle 9.0 soooo change that with
resources.excludes.add(“META-INF/native-image/**”)
and if it still does’nt work then there is some version issue btw kotlin jvmTarget version and the JavaVersion, for me :slight_smile:

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

viewBinding {
    enabled = true
}

kotlinOptions {
    jvmTarget = '17'
}

this worked
credits to Invalid build configuration. Attempt to create a global synthetic for 'Record desugaring' without a global-synthetics consumer. · Issue #1963 · hyperledger-web3j/web3j · GitHub
thanks