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

AndroidApp1 not working with OxyPlot.Core v2.1.0 #24

Open
Kistelekig98 opened this issue Nov 1, 2021 · 4 comments
Open

AndroidApp1 not working with OxyPlot.Core v2.1.0 #24

Kistelekig98 opened this issue Nov 1, 2021 · 4 comments

Comments

@Kistelekig98
Copy link

Steps to reproduce

  1. Open AndroidApp1 project
  2. Update OxyPlot.Core NuGet package to 2.1.0
  3. Run (I used Pixel 3a Android 11 simulator)

Expected behavior

The plot shows up.

Actual behavior

An exception is thrown:

System.TypeLoadException
Message=Type OxyPlot.Xamarin.Android.CanvasRenderContext has invalid vtable method slot 7 with method OxyPlot.RenderContextBase:DrawLine (System.Collections.Generic.IList`1<OxyPlot.ScreenPoint>,OxyPlot.OxyColor,double,OxyPlot.EdgeRenderingMode,double[],OxyPlot.LineJoin)

@Kistelekig98 Kistelekig98 changed the title AndroidApp1 not working withs OxyPlot.Core v2.1.0 AndroidApp1 not working with OxyPlot.Core v2.1.0 Nov 1, 2021
@VisualMelon
Copy link
Contributor

The 2.1 binaries are not compatible with the 2.0 platform binaries due to changes in the rendering APIs.

Ideally we will update the Xamarin provision to support 2.1 and re-release the nuget packages, but I don't think any of the maintainers are in a position to test them.

@Auto72
Copy link

Auto72 commented Nov 29, 2021

Same issue here.

@pythonista
Copy link

Hi, guys. Are you going to fix this isue anywhen?
I cannot export the plot to image in Xamarin because the last stable OxyPlot.Xamarin.Android 1.0.0 does not contain a builtin png exporter and the earliest stable OxyPlot.ImageSharp 2.0.0 needs the binary incompatible OxyPlot.Core 2.1.2+ :(
Could you please help me? How can I export the plot to an image in Xamarin?

@VisualMelon
Copy link
Contributor

Someone has kindly started working on the Xamarin.Forms provision again, and I believe the intention is that this would be the preferred package for Xamarin/Android going forward.

https://github.com/oxyplot/oxyplot-xamarin

I don't think it targets 2.1 yet, but that's something we should be able to sort out quite quickly if there is demand.

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