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

[Bug] Microcharts.Maui 1.0.0 Does not work in .NET MAUI 8 #344

Open
tusharsjagdale opened this issue Nov 22, 2023 · 6 comments
Open

[Bug] Microcharts.Maui 1.0.0 Does not work in .NET MAUI 8 #344

tusharsjagdale opened this issue Nov 22, 2023 · 6 comments
Labels

Comments

@tusharsjagdale
Copy link

Describe the bug
Microcharts.Maui 1.0.0 Does not rebuild in .NET MAUI 8 for Android platform

Which platform and version is this for?
Android

To Reproduce
Steps to reproduce the behavior:

  1. Add reference of Microcharts.Maui 1.0.0 in MAUI 8 Project
  2. Rebuild for Android Platform
  3. See error

Expected behavior
It should rebuild successful for android platform

Screenshots
image

@tusharsjagdale tusharsjagdale changed the title Microcharts.Maui 1.0.0 Does not work in .NET MAUI 8 [Bug] Microcharts.Maui 1.0.0 Does not work in .NET MAUI 8 Nov 24, 2023
@Ghostbird
Copy link

I don't think this is an issue with Microcharts. I'll randomly get this error when trying to build a MAUI.NET 8 app on my machine, yet it never happens in a clean CI build. I think this is some weird build caching issue.
The library is working with MAUI.NET 8 for me.

@Legends
Copy link

Legends commented Dec 16, 2023

.Net Maui on .net 8
Testing on local android 11 -API 30 device.
(It works fine on .net-7)

image
^

@tusharsjagdale : There is a wa for ur problem here

@Legends
Copy link

Legends commented Dec 16, 2023

Ok, I solved it by adding a reference to SkiaSharp.Views.Maui.Controls 2.88.6 to my application.
Ref

@prosperkmurau
Copy link

prosperkmurau commented Dec 18, 2023

also faced this problem, please help on how i can solve it for .net8. when i install the microcharts.maui nugget package, i immadiately encounter a warning on the transitive skiasharp package (vulnerable), even if i update the skiasharp to the latest stable, its not solving those android resource errors

@sulmar
Copy link

sulmar commented Dec 29, 2023

@Legends thank you for your hint. I solved too in this way, but it is best to improve the Microcharts.Maui package so that it adds all the necessary libraries on its own.

@mdelgadov
Copy link

mdelgadov commented Aug 11, 2024

It works in Maui net8, but the installation is a bit finnicky. Use https://github.com/PickleBurg/ImageSource-Memory-Leak branch chart-stuff as a path to fix it (especially if you do MVVM toolkit)

The biggest issue aside for the Skia dependency is the type declaration :

[ObservableProperty]
private LineChart myChart;

Also use the

<charts:ChartView Chart="{Binding MyChart}"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand" />

to bind to the VM

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

No branches or pull requests

6 participants