SideDrawer in Xamarin Android

4 posts, 0 answers
  1. Moni
    Moni avatar
    1 posts
    Member since:
    Dec 2016

    Posted 22 Jun 2017 Link to this post

    I am using Xamarin forms and want to use SideDrawer. I am able to implement the same in ios but when when I am implementing the same thing using Telerik SideDrawer control in Android, I am getting this error :

    Com.Telerik.Android.Primitives.Widget.Sidedrawer.RadSideDrawer' is defined in an assembly that is not referenced. Consider adding a reference to assembly `Telerik.Xamarin.Android.Primitives, Version=2016.3.1202.0, Culture=neutral, PublicKeyToken=null' (CS0012) 

     

    I have already added the required assembly mentioned in Telerik site in both Forms and Android project but noting seems to be working.

    Any help would be appreciated

     

    Thanks.

  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    665 posts

    Posted 22 Jun 2017 Link to this post

    Hello Moni,

    Please make sure that you have added references to the latest version of the SkiaSharp library(you can install SkiaSharp.Views and SkiaSharp.Views.Forms packages through NuGet) as well as the Telerik.XamarinForms.Primitives DLL is dependent on it. I have attached a sample for your reference. If you have already applied the references, please make sure that all the referenced Telerik DLLs are the same version.

    Regards,
    Stefan Nenchev
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. ian
    ian avatar
    7 posts
    Member since:
    May 2011

    Posted 20 Dec 2017 in reply to Stefan Nenchev Link to this post

    I downloaded the SideDrawerTest and tried to get it working. It builds with R3 2017 references but I get a runtime error:

    Unhandled Exception:

    System.TypeLoadException: Could not load type Telerik.XamarinForms.PrimitivesRenderer.Android.SideDrawerRenderer while decoding custom attribute: (null) occurred.

    Is there something missing ?

     

     

     

  4. Nikolay Demirev
    Admin
    Nikolay Demirev avatar
    179 posts

    Posted 22 Dec 2017 Link to this post

    Hi Ian,

    I have tested the project on my end and it works correctly. Could you check the references you are adding?

    Here is the list of the required assemblies you need to add to the portable project:
    Portable/Telerik.XamarinForms.Common.dll
    Portable/Telerik.XamarinForms.Primitives.dll

    Here is the list of the required assemblies you need to add to the Android project:
    Android/Telerik.Xamarin.Android.Common.dll
    Android/Telerik.Xamarin.Android.Primitives.dll
    Android/Telerik.XamarinForms.Common.dll
    Android/Telerik.XamarinForms.Primitives.dll

    I hope this helps.

    Regards,
    Nikolay Demirev
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top