Hi guys,
I have a problem with Skia
and Android
. The following code is working perfectly with iOS
<skia:SKCanvasView x:Name="canvasView"
PaintSurface="OnCanvasViewPaintSurface"
EnableTouchEvents="true"
Touch="Handle_Touch" />
but when I run my app on Android
an error occurs:
Field 'SkiaSharp.Views.Forms.SKCanvasView.EnableTouchEventsProperty' not found.
This is my packages
for Android:
<packages>
<package id="SkiaSharp" version="1.59.1" targetFramework="monoandroid60" />
<package id="SkiaSharp.Views" version="1.59.1" targetFramework="monoandroid60" />
<package id="SkiaSharp.Views.Forms" version="1.59.1" targetFramework="monoandroid60" />
<package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="23.3.0" targetFramework="monoandroid70" />
<package id="Xamarin.Android.Support.Design" version="23.3.0" targetFramework="monoandroid70" />
<package id="Xamarin.Android.Support.v4" version="23.3.0" targetFramework="monoandroid70" />
<package id="Xamarin.Android.Support.v7.AppCompat" version="23.3.0" targetFramework="monoandroid70" />
<package id="Xamarin.Android.Support.v7.CardView" version="23.3.0" targetFramework="monoandroid70" />
<package id="Xamarin.Android.Support.v7.MediaRouter" version="23.3.0" targetFramework="monoandroid70" />
<package id="Xamarin.Android.Support.v7.RecyclerView" version="23.3.0" targetFramework="monoandroid70" />
<package id="Xamarin.Android.Support.Vector.Drawable" version="23.3.0" targetFramework="monoandroid70" />
<package id="Xamarin.Forms" version="2.3.4.267" targetFramework="monoandroid60" />
</packages>
The SkiaSharp
version is the same for PCL
, iOS
and Android
.