adrielcafe / bonsai

:deciduous_tree: A multiplatform tree view for Jetpack Compose
MIT License
355 stars 13 forks source link

java.lang.ClassNotFoundException: androidx.compose.material.icons.filled.ChevronRightKt in compose desktop #4

Open lucas-gio opened 2 years ago

lucas-gio commented 2 years ago

When bonsai is rendering the tree, an class not found exception is thrown. After investigate, the solution is to add the dependency (gradle): var icons = "1.1.1" implementation("org.jetbrains.compose.material:material-icons-extended-desktop:$icons")

I dont know which is better: transitive dependency or documentate this special case of compose desktop for add this in build gradle/maven.

mlykotom commented 1 year ago

I wonder why all the dependencies are marked as compileOnly. This is what's causing the problem.

mipastgt commented 1 year ago

It is sufficient to add implementation(compose.materialIconsExtended) in the commonMain dependencies.

mgroth0 commented 6 months ago

I just hit the same error. Why is it compileOnly?