Git Product home page Git Product logo

Comments (4)

Frankat1578 avatar Frankat1578 commented on August 24, 2024 1

Hi,
Am also experiencing the same issue in android studio kotlin project. When ever I add implementation("org.litote.kmongo:kmongo:4.8.0") to my dependency and run my kotlin project I get the same error(Invalid build configuration. Attempt to create a global synthetic for 'Record desugaring' without a global-synthetics consumer.) but when I remove this dependency and rerun the code the error does not appear again. My Kotlin version is = 213-1.7.20-release-for-android-studio-AS6777.52
What's Working
Only the version4.5.0 works for me. The versions 4.6.0,4.7.0 and 4.8.0 are all not working.

from kmongo.

zigzago avatar zigzago commented on August 24, 2024

What is your version of kotlin ?

from kmongo.

NoodlesXNoodles avatar NoodlesXNoodles commented on August 24, 2024

What's Working
Only the version4.5.0 works for me. The versions 4.6.0,4.7.0 and 4.8.0 are all not working.

The same, but version 4.5 works perfectly

from kmongo.

tfonrouge avatar tfonrouge commented on August 24, 2024

Hi,

@NoodlesXNoodles , I think that you have to keep opened this issue because we haven't found yet the fix.

Doing a simple new Android project and including the current KMongo library:

implementation("org.litote.kmongo:kmongo:4.8.0")

throws the following error:

> Task :app:mergeExtDexDebug FAILED
AGPBI: {"kind":"error","text":"Invalid build configuration. Attempt to create a global synthetic for 'Record desugaring' without a global-synthetics consumer.","sources":[{}],"tool":"D8"}
...
> Task :app:mergeProjectDexDebug

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform bson-record-codec-4.8.0.jar (org.mongodb:bson-record-codec:4.8.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingNoClasspathTransform: /home/teo/.gradle/caches/modules-2/files-2.1/org.mongodb/bson-record-codec/4.8.0/5c4f81e2998a201466188c978642179f41dd3dfb/bson-record-codec-4.8.0.jar.
         > Error while dexing.

Seems to be that the culprit is the bson record codec in the mongodb library according to the above error.

I've tried to fix it including the desugar jdl library in the dependencies without success:

    coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'

HTH

best regards,

Teo

from kmongo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.