Hi, I'm getting this error while trying to add com...
# amper
j
Hi, I'm getting this error while trying to add compose-sonner library in amper module.yaml file
Dependency io.github.dokar3:sonner:0.3.8 depends on io.github.dokar3:sonner-android:0.3.8 which has the following problem:
Module io.github.dokar3:sonner:0.3.8 depends on androidx.compose.ui:ui-tooling-preview, but its version could not be resolved. Attribute version is not defined
fixed 1
a
Hi, thanks for the feedback, we reproduced the issue, working on it
the issue is fixed in dev version
0.8.0-dev-2908
. Though at the moment, to add dependency on
io.github.dokar3:sonner:0.3.8
one should also declare dependency on a android-compose BOM like this
Copy code
dependencies:
  - io.github.dokar3:sonner:0.3.8
  - bom: androidx.compose:compose-bom:2025.05.00
And I have filed an issue to add that BOM import automatically for android modules with compose enabled: AMPER-4448/Add-implicit-import-of-android-compose-BOM-to-android-related-modules-if-compose-is-enabled
👀 1