Completed
Last Updated: 21 Jul 2022 13:19 by ADMIN
Release R1 2021 SP1
Philip Allwright
Created on: 22 Jan 2021 09:29
Category: UI for Xamarin
Type: Bug Report
1
Chart: [Android] Project could not be compiled when the latest version of Xamarin.Google.Android.Material is referenced

When building against XF5 and after migrating a project you can get the following error:-

Severity Code Description Project File Line Suppression State
Error failed linking file resources. App1.Android
Error '5dp' is incompatible with attribute verticalOffset (attr) float [weak]. App1.Android
Error '10dp' is incompatible with attribute horizontalOffset (attr) float [weak]. App1.Android

It appears to be a conflict between

<PackageReferenceInclude="Xamarin.Google.Android.Material"Version="1.2.1.1" />

and Telerik assemblies.

If a dummy app is built with that Nuget it all works fine until the Nuget

<PackageReference Include="Telerik.UI.for.Xamarin" Version="2021.1.119.1" />

is added.

So you can have one or the other but not both.

Please see this GitHub thread where its discussed more and a sample app is posted.

(I am user Gmotagi in it)

https://github.com/xamarin/Xamarin.Forms/issues/13303

 

 

 

 
9 comments
ADMIN
Didi
Posted on: 21 Jul 2022 13:19

Hi Nasiruddin, 

If I understand correctly you don't want to update the Telerik version but you want to use a fix introduced in Telerik 2021 version in the Telerik version you have 2019 - I am afraid this scenario cannot be achieved.

Let me explain in details:

This bug report is logged on 22 Jan 2021, and a fix for it is provided on 17 Feb 2021. All Telerik versions above 2021.1.216 (16/2/2021) contain the fix. 

Based on the information from the NuGet server packages - Xamarin.Forms 5.0 official version is released on Tuesday, January 5, 2021 (1/5/2021). So when the Telerik 2019 version has been released there wasn't a Xamarin.Forms 5.0 version. New versions brings new changes, improvements, etc. This is a period of 2 years. 

Telerik UI for Xamarin has major and minor releases where the new features and improvements are included. 

The option you have is to update the app to the latest version of Xamarin.Forms and Telerik UI for Xamarin in order to use the latest features and improvements.

I have reviewed the account holder and there isn't an active license. If you want to use the latest features and improvements from Telerik UI for Xamarin you will need a license. Our sales team sent an email (they used the email linked to the account) and there isn't a response. If you have any additional question please contact the sales team.

I hope this information answers your question.

Regards,
Didi
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


n/a
Posted on: 21 Jul 2022 09:45

Hi @Didi, @Milena - Our product/app looks good and soon there is no plan for upgrade. My application development is going on. My question was

will I not be able to use Xamarin 5.0+ features including Hot Reload just because of Telerik 2019 issue ? its a blocker for me. If I update Xamarin version getting errors. It became big problem for us using Telerik 2019. Please let me know how can I fix this ?

ADMIN
Milena
Posted on: 20 Jul 2022 10:54

Hello Nasiruddin,

My name is Milena Garbova, and I am part of the Customer Advocacy team at Progress. I hope that the information provided by our support team was helpful. I just wanted to let you know that we have made several attempts to get in touch with you on the email address provided in your account regarding the license renewal. Unfortunately, there was no response, so if you have decided to renew, please let me know, and I will put you in contact with a Product Specialist. 

Regards, Milena Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer; each can get a $50 Amazon gift voucher.

ADMIN
Didi
Posted on: 20 Jul 2022 07:35

Hello Nasiruddin,

I have reviewed the case and the issue is reported 2021 year.  The fix is available from lib 2021.1.216 and all version above this contain the fix. 

As you do not see the Telerik versions above 2019, your license is expired in 2019 (a license gives you support for 1 year -minimum 6 releases: 3 major & 3 minor). If you want a new version, such as a new release in 2021 or 2022, you need to renew your license. 

These are the steps for upgrading the Telerik license:

1. Go to https://www.telerik.com/account/support-center
2. Select "Contact Us" and then select "Licensing support"
3. Explain that you need to upgrade to 2022

I will forward your request to the appropriate team. If you want to renew your license they will assist further. 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

n/a
Posted on: 20 Jul 2022 03:55
@Didi - 

Hi, what developer should do who are having Telerik 2019 subscription only and do not require to update it, will they not be able to use Xamarin 5.0+ features including Hot Reload just because of Telerik issue ?

In nuget package manager I am not getting Telerik packages above 2019. In that can what should I do ? please suggest me

ADMIN
Georgi
Posted on: 17 Feb 2021 08:56

Hi,

This item is available in latest internal build - LIB 2021.1.216 (16/2/2021)) and it will be also available in the next official release. You can find the LIB as a prerelease nuget or download the assemblies from your account.

Regards,
Georgi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Didi
Posted on: 28 Jan 2021 06:58

Hi Philip,

I am writing to let you know that we will fix on our side the compile-time errors 5dp and 10dp. The item status is "In Development". If passing testing, the fix will be included in the next minor release/Service Pack.

The item status will be updated accordingly.

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Didi
Posted on: 25 Jan 2021 16:31

Hi Philip,

We have identified the problem, it is a conflict of object types in the Xamarin.Google.Android.Material package against external definitions.

The error with the 5dp and 10 dp occurs because the native Telerik android Chart control has the following attributes:


     <attr name="horizontalOffset" format="float" />
     <attr name="verticalOffset" format="float" />

 

one of the attributes being used in the latest version of Xamarin.Google.Android.Material (notice the 5dp and 10dp string values):

<badge xmlns:app="http://schemas.android.com/apk/res-auto"
    app:maxCharacterCount="2"
    app:horizontalOffset="10dp"
    app:verticalOffset="5dp"/>

Workaround:

downgrade the Xamarin.Android.Material version to 1.1.0.5 version. It seems the issue happens with 1.2.1.1 version of Xamarin.Android.Material.

Another solution if you want to use version 1.2.1.1 of Xamarin.Android.Material, is to not use the complete Telerik UI for Xamarin NuGet because it refers the Chart dll. -> So you can install the separate nuget packages exclude the NuGet for the chart control. 

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Didi
Posted on: 22 Jan 2021 17:11

Hello Philip,

Thank you for reporting this issue. I changed the item status to "Under Review".

We have reproduced the errors on our side. The issue was escalated to the development team and I can assure you that the team is researching the case further. 

I will send a follow-up message here once I have more information to share. In the meantime, your patience is highly appreciated. 

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.