Matti MK
11/16/2021, 11:59 AMSQLDelight
to my project following this: https://kotlinlang.org/docs/kmm-configure-sqldelight-for-data-storage.html
It, however, lead to a long list of Duplicate class
errors during build, such as the following:
Duplicate class org.jetbrains.org.objectweb.asm.util.TraceSignatureVisitor found in modules kotlin-compiler-embeddable-1.5.30 (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.30) and kotlin-gradle-plugin-1.5.30 (org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30)
And a little bit more concise message:
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':androidApp:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
> 2 files found with path 'kotlin/reflect/reflect.kotlin_builtins' from inputs:
- /.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.31/6628d61d0f5603568e72d2d5915d2c034b4f1c55/kotlin-stdlib-1.5.31.jar
- /.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.5.30/3362a354066df1578a057c200da23cf2a1d8144f/kotlin-compiler-embeddable-1.5.30.jar
Adding a packagingOptions block may help, please refer to
<https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html>
for more information
I assume here SQLDelight is having a dependency that somthing else depends on.
How would one go about resolving this issue?