Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Не собирается приложение на Jetpack Compose #1

Open
minyushov opened this issue Jun 13, 2023 · 0 comments
Open

Comments

@minyushov
Copy link

Добрый день.

При попытке интеграции SDK в приложение, использующее Jetpack Compose (например, версии 1.5.0-beta02), сборка становится невозможной из-за дублирующихся классов:

Duplicate class androidx.compose.foundation.layout.AddedInsets found in modules foundation-layout-release-runtime (androidx.compose.foundation:foundation-layout-android:1.5.0-beta02) and jazz-public-sdk-23.04.1.291-runtime (com.sdkit.android:jazz-public-sdk:23.04.1.291)
Duplicate class androidx.compose.foundation.layout.DerivedHeightModifier found in modules foundation-layout-release-runtime (androidx.compose.foundation:foundation-layout-android:1.5.0-beta02) and jazz-public-sdk-23.04.1.291-runtime (com.sdkit.android:jazz-public-sdk:23.04.1.291)
Duplicate class androidx.compose.foundation.layout.DerivedHeightModifier$measure$1 found in modules foundation-layout-release-runtime (androidx.compose.foundation:foundation-layout-android:1.5.0-beta02) and jazz-public-sdk-23.04.1.291-runtime (com.sdkit.android:jazz-public-sdk:23.04.1.291)
Duplicate class androidx.compose.foundation.layout.DerivedHeightModifier$measure$2 found in modules foundation-layout-release-runtime (androidx.compose.foundation:foundation-layout-android:1.5.0-beta02) and jazz-public-sdk-23.04.1.291-runtime (com.sdkit.android:jazz-public-sdk:23.04.1.291)
Duplicate class androidx.compose.foundation.layout.DerivedWidthModifier found in modules foundation-layout-release-runtime (androidx.compose.foundation:foundation-layout-android:1.5.0-beta02) and jazz-public-sdk-23.04.1.291-runtime (com.sdkit.android:jazz-public-sdk:23.04.1.291)
...

Если посмотреть на внутренности SDK, то действительно можно увидеть, что классы Jetpack Compose находятся внутри самого SDK, чего по идее быть не должно:
sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant