This is a migrated thread and some comments may be shown as answers.

SideDrawer in Xamarin Android

3 Answers 89 Views
SideDrawer
This is a migrated thread and some comments may be shown as answers.
Moni
Top achievements
Rank 1
Moni asked on 22 Jun 2017, 06:48 AM

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.

3 Answers, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 22 Jun 2017, 01:26 PM
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
0
ian
Top achievements
Rank 1
answered on 20 Dec 2017, 10:13 AM

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 ?

 

 

 

0
Nikolay Demirev
Telerik team
answered on 22 Dec 2017, 09:19 AM
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
Tags
SideDrawer
Asked by
Moni
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
ian
Top achievements
Rank 1
Nikolay Demirev
Telerik team
Share this question
or