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

java.lang.NoSuchFieldError: No field Fill of type Landroidx/compose/ui/graphics/PaintingStyle #27

Open
Javicompi opened this issue Nov 3, 2021 · 6 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Javicompi
Copy link

Javicompi commented Nov 3, 2021

App compiles, but crashes when tries to show the LineChart. I updated Compose version to 1.0.4, and still get it.

java.lang.NoSuchFieldError: No field Stroke of type Landroidx/compose/ui/graphics/PaintingStyle; in class Landroidx/compose/ui/graphics/PaintingStyle; or its superclasses (declaration of 'androidx.compose.ui.graphics.PaintingStyle' appears in /data/app/~~1IClg3K24qqTN_iqrjdXRg==/es.jnsoft.whatweath-pLHYJOTf4GaonKm_ukZsTg==/base.apk)
at com.github.tehras.charts.line.renderer.line.SolidLineDrawer.(SolidLineDrawer.kt:14)
at com.github.tehras.charts.line.renderer.line.SolidLineDrawer.(Unknown Source:0)
at com.github.tehras.charts.line.renderer.line.SolidLineDrawer.(SolidLineDrawer.kt:8)

Edited:

I meant, my project was using Compose 1.0.1, and had the same issue.

@ociler
Copy link

ociler commented Dec 13, 2021

Did you find any solution? I have the same issue.

@Javicompi
Copy link
Author

I didn't. Just implemented it on my own. Not as difficult as I thought in Compose.

@ociler
Copy link

ociler commented Dec 13, 2021

Could you help me on this? I don't even know how to start :'(

@Javicompi
Copy link
Author

What I did was to adapt what I found in this article:

https://proandroiddev.com/building-your-first-custom-chart-in-android-with-jetpack-compose-a890fb60878b

I didn't need something too fancy anyway.

@ociler
Copy link

ociler commented Dec 13, 2021

Yes, I checked that article too. I will try something like that. Thank you so much!!

@Javicompi
Copy link
Author

Go for it. Might seem complicated. But as I said, with Compose is not that difficult.

@GabeGiro GabeGiro added bug Something isn't working good first issue Good for newcomers labels Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants