Xamarin updating c1 nugets

Posted by: s.van.der.veek on 29 July 2019, 9:25 pm EST

    • Post Options:
    • Link

    Posted 29 July 2019, 9:25 pm EST

    Hi,

    I am using C1 inside our xamarin.forms application and am currently using C1 nugets (android.core, android.calendar, forms.core and forms.calander) version: 3.4 with Xamarin.Forms version: 4.1. Today I decided to update C1 to the latest version (4.0) and rebuilt my application but this resulted in a error which I am unable to get rid of.

    The error:

    Can not resolve reference:

    Xamarin.Android.Support.SwipeRefreshLayout
    , referenced by
    C1.Android.Core
    . Please add a NuGet package or assembly reference for
    Xamarin.Android.Support.SwipeRefreshLayout
    , or remove the reference to
    C1.Android.Core
    .

    I have tried adding the ‘Xamarin.Android.Support.SwipeRefreshLayout’ nuget and also adding a reference to ‘Xamarin.Android.Support.SwipeRefreshLayout’ inside ‘references’. Unfortunately neither action has solved this error.

    I was hoping to get some help from an expert with a possible solution.

    Gr. Sjoerd

  • Posted 31 July 2019, 3:53 pm EST

    Hi Gr.Sjoerd

    This error occurs if “Compile using Android version: (Target Framework)” of Android project is set Android 8.0 (Oreo)/Android 8.1 (Oreo).

    However, project can be build properly if this version is changed to Android 9.0 (Pie) and versions of 'Xamarin.Android.Support.xxxx" to 28.0.0.1.

    Please let us know if you face any difficulty

    Thanks

  • Posted 31 July 2019, 7:08 pm EST

    Hi,

    I have tried changing the target framework from 8.0 to 9.0 and made sure that all my xamarin.android.support libraries are version 28.0.0.1 (these were already up-to-date).

    The same error is still occurring.

  • Posted 4 August 2019, 5:05 pm EST

    Hi

    We are sorry to let you know that the issue is not reproducible at our end after setting the Xamarin.Forms android Target Framework to Android 9.

    Please try the following steps

    • Remove the reference of “Xamarin.Android.Support.SwipeRefreshLayout” from

    ‘references’.

    • Set the Xamarin.Forms Android Target Framework to Android 9.

    • Remove all the c1 nuget packages from nuget.

    • Clean your project.

    • Add references to to C1 nuget packages.

    • Try rebuilding your application.

    Please let us know if you still face any difficulty

    Thanks

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels