Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Duplicate class error when using multiple android extensions #45

Closed
frett opened this issue Oct 13, 2023 · 0 comments · Fixed by #46
Closed

Duplicate class error when using multiple android extensions #45

frett opened this issue Oct 13, 2023 · 0 comments · Fixed by #46

Comments

@frett
Copy link
Contributor

frett commented Oct 13, 2023

I get the following build error when I'm using multiple of the Android extension libraries:

Duplicate class com.github.ajalt.colormath.BuildConfig found in modules colormath-ext-android-colorint-release-runtime (com.github.ajalt.colormath:colormath-ext-android-colorint-android:3.3.2) and colormath-ext-jetpack-compose-release-runtime (com.github.ajalt.colormath:colormath-ext-jetpack-compose-android:3.3.2)

This is due to using the same android.namespace value in the gradle build script for those extensions

frett added a commit to CruGlobal/kotlin-mpp-godtools-tool-parser that referenced this issue Oct 13, 2023
This reverts commit 5e7d7cd.
This reverts commit 043f472.
This reverts commit 505125e.

There is currently conflicting android namespaces between the jetpack compose and colorint extensions. This works around the issue by rolling back to before 3.3.0 which introduced the namespace conflict.

see: ajalt/colormath#45
@ajalt ajalt closed this as completed in #46 Oct 13, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant