"ERROR: Invalid build configuration. Attempt to create a global synthetic for 'Record desugaring' without a global-synthetics consumer."

1,659 views
Skip to first unread message

Giorgio Pigierati

unread,
Mar 14, 2023, 4:57:40 AM3/14/23
to kmongo

Hello everyone,

I am facing a small issue, where executing kmongo code in a simple kt file with a main() function, it works fine, but when I try to implement it in my SDK project by installing it and adding "implementation 'org.litote.kmongo:kmongo:4.8.0'" to the build.gradle file, I consistently receive the following error during build: "Invalid build configuration. Attempt to create a global synthetic for 'Record desugaring' without a global-synthetics consumer." This error is definitely due to Kmongo, because if I remove the implementation, my application launches without error. I hope you can help me with this.

Thank you all.

zigzago

unread,
Apr 11, 2023, 8:45:46 AM4/11/23
to kmongo
Hello,

There is a similar error on this thread. https://www.mongodb.com/community/forums/t/how-to-properly-connect-my-kotlin-android-app-with-mongodb-atlas-cluster/196264
No sure that MongoDb is supported in an Android env.

HTH

Reply all
Reply to author
Forward
0 new messages