androidxamarinvisual-studio-2015xamarin.android

Severity Code Description Project File Line Suppression State Error (downloading from Nuget for Xamarin)


I am having this error on my VS when I am trying to download some versions of xamarin.android.support (v24 and up) from nugget package manager

Severity Code Description Project File Line Suppression State
Error Could not install package 'Xamarin.Android.Support.v7.RecyclerView 
26.1.0.1'. You are trying to install this package into a project that targets 
'MonoAndroid,Version=v7.1'

How can I solve this? I'm sorry but I don't have any idea about MonoAndroid. I already tried to update may xamarin and vs but still having same error. TIA!


Solution

  • Google's Android Support 26.x Libraries require "targeting" Android 8.0+

    The Target Framework (also known as compileSdkVersion) is the specific Android framework version (API level) that your app is compiled for at build time.

    In your Xamarin.Android application project, set the Target Framework to 8.0/Oreo

    enter image description here

    re: Xamarin Android Doc: Target Framework