Declined
Last Updated: 01 Dec 2023 20:59 by ADMIN
donnmo
Created on: 01 Dec 2023 19:29
Category: UI for Xamarin
Type: Bug Report
0
Cannot build project in Visual Studio 2022 after replacing trial version of Xamarin Chart control with licensed version

Hello,

I'd been testing the trial version of the Telerik chart control for Xamarin in an Android app. Because it was working well, I'd purchased a license yesterday. And, I replaced the NuGet trial package with the license package. So far, so good.

However, now, when I try to build the project, it fails. (I've tried building both the Release and Debug version.)

The errors I see are below:

Severity Code Description Project File Line Suppression State
Error failed linking references. Ble.Client.Android
Error resource style/MainTheme.Base (aka com.companyname.ble.client:style/MainTheme.Base) not found. Ble.Client.Android
ErrorNU1301       Failed to retrieve information about 'Xamarin.AndroidX.AppCompat' from remote source 'https://packagesource/FindPackagesById()?id='Xamarin.AndroidX.AppCompat'&semVerLevel=2.0.0'. Ble.Client.Android D:\2023_devwork\BLE_Xamarin\XamarinBleCodeBehind-main\XamarinBleCodeBehind-main\Ble.Client\Ble.Client.Android\Ble.Client.Android.csproj 1

Any thoughts as to what might have broken, and, what I need to do in order to resolve the issue? (In case it helps, I'm including a screen capture of the Visual Studio 2022 output window.)

Thanks!

--Donn Morse

               
Attached Files:
1 comment
ADMIN
Lance | Senior Manager Technical Support
Posted on: 01 Dec 2023 20:59

Hello Donn,

Thank you for including the error output, this is not related to Telerik UI for Xamarin. => "Failed to retrieve information about 'Xamarin.AndroidX.AppCompat' from remote source" The Xamarin.AndroidX.AppCompat package comes from Microsoft, via nuget.org.

So what I suspect is going on is there was an interuption during your nuget package restore phase. One way to kick start this is to start with a fresh build. Let's revisit what you project has:

  1. Make sure you have a valid internet connection
  2. Make sure every project has the Telerik.UI.for.Xamarin NuGet package installed (this is better than wrangling up a bunch of individual assembly references)
  3. Make sure the Android project head is set as the "Startup Project"
  4. Do a Clean Solution
  5. Do a Rebuild Solution

If that still chokes, then close Visual Studio and open the project in File Explorer. Go into every project and delete the bin and obj folders. Then reopen it in Visual Studio and the three steps again.

Further Assistance

  • If you continue to have trouble with NuGet package restore from nuget.org, you can ask Microsoft for help here => Xamarin - Microsoft Q&A
  • If you have any further trouble with Telerik-specific errors, I recommend that you open a Technical Support Ticket so you can directly talk to the engineering team.

Regards,
Lance | Manager Technical Support
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.