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

RatingBar is not compatible with compose version 1.0.0-beta08 #7

Closed
Vivecstel opened this issue Jun 2, 2021 · 4 comments
Closed

RatingBar is not compatible with compose version 1.0.0-beta08 #7

Vivecstel opened this issue Jun 2, 2021 · 4 comments

Comments

@Vivecstel
Copy link

When using RatingBar library with compose version 1.0.0-beta08 I get the following runtime exception:

java.lang.NoSuchMethodError: No static method drawPath-3IgeMak$default(Landroidx/compose/ui/graphics/drawscope/DrawScope;Landroidx/compose/ui/graphics/Path;JFLandroidx/compose/ui/graphics/drawscope/DrawStyle;Landroidx/compose/ui/graphics/ColorFilter;Landroidx/compose/ui/graphics/BlendMode;ILjava/lang/Object;)V in class Landroidx/compose/ui/graphics/drawscope/DrawScope$DefaultImpls; or its super classes (declaration of 'androidx.compose.ui.graphics.drawscope.DrawScope$DefaultImpls' appears in /data/app/~~lPHkKeaVkTN6BDFdaohwwA==/com.steleot.jetpackcompose.playground-sSgRla-zZWCVDMLEPvKzFg==/base.apk)
        at com.gowtham.ratingbar.RatingStarKt$FilledStar$1$1.invoke(RatingStar.kt:43)
        at com.gowtham.ratingbar.RatingStarKt$FilledStar$1$1.invoke(RatingStar.kt:40)
        at androidx.compose.ui.draw.DrawBackgroundModifier.draw(DrawModifier.kt:101)
        at androidx.compose.ui.node.ModifiedDrawNode.performDraw(ModifiedDrawNode.kt:102)
        at androidx.compose.ui.node.LayoutNodeWrapper$invoke$1.invoke(LayoutNodeWrapper.kt:260)
        at androidx.compose.ui.node.LayoutNodeWrapper$invoke$1.invoke(LayoutNodeWrapper.kt:259)
...

Thanks

@a914-gowtham
Copy link
Owner

a914-gowtham commented Jun 3, 2021

@Vivecstel Can you try this mavencentral dependency. I'am having issues with jitpack
implementation 'io.github.a914-gowtham:compose-ratingbar:1.0.6'

@Karim0x1
Copy link

Karim0x1 commented Jun 3, 2021

It works for me, thank you

@a914-gowtham a914-gowtham pinned this issue Jun 3, 2021
@Vivecstel
Copy link
Author

I tested it also. Thanks @a914-gowtham for the quick update.

@sherazlinez
Copy link

Thanks, @a914-gowtham. It is working now

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

4 participants