Unable to create project with C1. Xamarin.Forms.Input for Android

Posted by: stevecarmichelle1 on 3 January 2019, 11:31 pm EST

  • Posted 3 January 2019, 11:31 pm EST

    Hi,

    When trying to add this package C1. Xamarin.Forms.Input for Android in Visual Studio 2017 I always get this error.

    Version conflict detected for Xamarin.Android.Support.v7.RecyclerView. Reference the package directly from the project to resolve this issue.
    SimpleAutoComplete.Android -> C1.Xamarin.Forms.Input 3.2.20183.352 -> C1.Android.Input 3.2.20183.352 -> Xamarin.Android.Support.v7.RecyclerView (>= 27.0.2.1)
    SimpleAutoComplete.Android -> Xamarin.Android.Support.Design 25.4.0.2 -> Xamarin.Android.Support.v7.RecyclerView (= 25.4.0.2).
    Package Xamarin.Android.Support.v7.RecyclerView 27.0.2.1 is not compatible with monoandroid70 (MonoAndroid,Version=v7.0). Package Xamarin.Android.Support.v7.RecyclerView 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)
    Package Xamarin.Android.Support.Compat 27.0.2.1 is not compatible with monoandroid70 (MonoAndroid,Version=v7.0). Package Xamarin.Android.Support.Compat 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)
    Package restore failed. Rolling back package changes for 'SimpleAutoComplete'.

    I am targetting Android SDK 7.0 or 7.1. but either way this nuget package does not get added to this project. Earlier I was developing for iOS and didnt face any issues.


    Kindly assist in adding the nuget package so that I can build the project and use the controls such as Autocomplete.

    Thanks,

    Rajesh.
  • Replied 4 January 2019, 2:31 am EST

    Hi Rajesh

    The Xamarin.Android Support libraries can be a pain to deal with via NuGet, but I've seen a few good guides about how to go about updating. For instance here's a very good one:

    https://montemagno.com/resolving-android-support-library-nuget-installation-issues/

    Generally speaking, you need to make sure you're using an up to date version of Xamarin (which you can easily get by updating VS 2017 these days), make sure that you're compiling against 8.1, and update the support packages.

    Hope that helps, let me know if you have any questions.

    Kelley
  • Replied 6 January 2019, 9:18 pm EST

    Hi Kelley,

    Thanks for the reply and on investigation, I am still on VS 2017 15.5.7 since I developed the iOS version of our application and it is working fine.

    Will take some time to decide to migrate to the new versions of Xamarin and VS 2017 since I hear that the new versions can break an existing application and it requires a lot of effort to fix them.

    Do you think that the failure of the new version of autocomplete (Starts with...) was due to the older version of VS 2017 and Xamarin even if the nuget packages updated correctly. Refer to my other thread about the Autocomplete control in iOS projects.

    Regards,

    Rajesh.
  • Replied 7 January 2019, 1:41 am EST

    It's possible since it's not uncommon for there to be bugs in Xamarin releases that get fixed over time. I couldn't reproduce any of the issues you mentioned in that sample, so it seems reasonable that the version might be the issue.

    Kelley
Need extra support?

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

Learn More

Forum Channels