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

Errors when building Xamarin Android (with Forms)

2 Answers 125 Views
This is a migrated thread and some comments may be shown as answers.
Marek
Top achievements
Rank 2
Marek asked on 04 Dec 2017, 11:06 AM
I have exactly the same issue - 38 errors similar to this one:

```
1: Error obj/Debug/android/src/mono/com/telerik/android/primitives/widget/sidedrawer/DrawerChangeListenerImplementor.java (8,51):  error: package com.telerik.android.primitives.widget.sidedrawer does not exist
com.telerik.android.primitives.widget.sidedrawer.DrawerChangeListener
```

I have Xamarin.Forms version 2.5.0.91635 which was released ~2-3 weeks ago. 

Here is is my packages.config with Android Support and Forms packages:

```
<package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.Annotations" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.Compat" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.Core.UI" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.Core.Utils" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.Design" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.Fragment" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.Media.Compat" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.Transition" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.v4" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.v7.AppCompat" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.v7.CardView" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.v7.MediaRouter" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.v7.Palette" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.v7.RecyclerView" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Android.Support.Vector.Drawable" version="25.4.0.2" targetFramework="monoandroid71" />
<package id="Xamarin.Forms" version="2.5.0.91635" targetFramework="monoandroid71" />
```

I all the required DLLs (for ListView) manually:

```xml
<Reference Include="Telerik.Xamarin.Android.Common, Version=2017.3.1123.0, Culture=neutral, PublicKeyToken=null">
  <HintPath>..\Libs\Telerik.UiForXamarin\Android\Telerik.Xamarin.Android.Common.dll</HintPath>
</Reference>
<Reference Include="Telerik.Xamarin.Android.Data, Version=2017.3.1123.0, Culture=neutral, PublicKeyToken=null">
  <HintPath>..\Libs\Telerik.UiForXamarin\Android\Telerik.Xamarin.Android.Data.dll</HintPath>
</Reference>
<Reference Include="Telerik.Xamarin.Android.Input, Version=2017.3.1123.0, Culture=neutral, PublicKeyToken=null">
  <HintPath>..\Libs\Telerik.UiForXamarin\Android\Telerik.Xamarin.Android.Input.dll</HintPath>
</Reference>
<Reference Include="Telerik.Xamarin.Android.List, Version=2017.3.1123.0, Culture=neutral, PublicKeyToken=null">
  <HintPath>..\Libs\Telerik.UiForXamarin\Android\Telerik.Xamarin.Android.List.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Common, Version=2017.3.1123.240, Culture=neutral, PublicKeyToken=null">
  <HintPath>..\Libs\Telerik.UiForXamarin\Android\Telerik.XamarinForms.Common.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.DataControls, Version=2017.3.1123.240, Culture=neutral, PublicKeyToken=null">
  <HintPath>..\Libs\Telerik.UiForXamarin\Android\Telerik.XamarinForms.DataControls.dll</HintPath>
</Reference>
```

What am I missing?

Best regards,
Marek

2 Answers, 1 is accepted

Sort by
0
Marek
Top achievements
Rank 2
answered on 04 Dec 2017, 11:26 AM

I managed to get this working. Your documentation for Android ListView setup is incomplete. Here is the full list of required DLLs:

 

SkiaSharp, Version=1.59.0.0
SkiaSharp.Views.Android, Version=1.59.0.0
SkiaSharp.Views.Forms, Version=1.59.0.0
Telerik.Xamarin.Android.Common, Version=2017.3.1123.0
Telerik.Xamarin.Android.Data, Version=2017.3.1123.0
Telerik.Xamarin.Android.Input, Version=2017.3.1123.0
Telerik.Xamarin.Android.List, Version=2017.3.1123.0
Telerik.Xamarin.Android.Primitives, Version=2017.3.1123.0
Telerik.XamarinForms.Common, Version=2017.3.1123.240
Telerik.XamarinForms.DataControls, Version=2017.3.1123.240

 

+ Xamarin.Android Support assemblies.

 

SkiaSharp and Telerik.Xamarin.Android.Primitives were missing.

 

Best regards,

Marek

0
Lance | Manager Technical Support
Telerik team
answered on 04 Dec 2017, 03:53 PM
Hello Marek,

I've passed this on to the documentation team.

In regards to the Xamarin.Android support libraries, there's an article that should have been read first (this one, under Installation and Deployment)), but it's not that clear if you jump right to RadListView's Required Telerik References article. I'll also make a recommendation that a link be added to that as well.

Regards,
Lance | Tech Support Engineer, Sr.
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
Asked by
Marek
Top achievements
Rank 2
Answers by
Marek
Top achievements
Rank 2
Lance | Manager Technical Support
Telerik team
Share this question
or