Comments (4)
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.
What is your version of kotlin ?
from kmongo.
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.
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)
- update error when use nested properties and `setTo`
- ERROR: 'WrappedObjectId' is not registered for polymorphic serialization in the scope of 'Id' HOT 1
- Consider adding a classpath argument to the ServiceLoader.load call in ClassMappingType.kt
- Can CoroutineCollection<T>.replaceOne(replacement, options) be made non reified?
- Wrong regular expression generated HOT 1
- Use mongodb kotlin bson implementation HOT 1
- kotlinx - UUID Serializer - String HOT 4
- Support for CSFLE and Queryability Encryption HOT 1
- Feature Request - MongoDB Compass Pipeline shell to kotlin kmongo support
- @Transient from kotlin serialization does not deserialize data? HOT 1
- When using SerialName, the Bson document generated by kmongo is incorrect HOT 2
- From version 4.7.0 Java 8 compatibility is broken HOT 6
- Request: Add explicit error message when incorrectly registering codecs to prevent OutOfMemoryError
- Kotlinx Serialization? HOT 4
- Add support to pass options to aggregate query (hint and allowDiskUse)
- How to aggregate objects by regex on list HOT 1
- STOP debug org.mongodb.driver logs HOT 1
- Expose default Jackson codec HOT 1
- Appreciation post HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kmongo.