Well, in my case (jetabrains KMM compose multiplatform) there were some generated files at: build/intermediates/project_dex_archive/debug/dexBuilderDebug/out/com/project/path/to/resource/ComposableSingletons$MyPackage$lambda-1$1.dex
I deleted all the files there AND also changed the minifyEnabled to 'true' - which is the opposite of what's suggested - so I'm not sure which did it for me but there. Maybe It'll work for someone.