Severity Code Description Project File Line Suppre

2020-05-03 13:03发布

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!

1条回答
爷、活的狠高调
2楼-- · 2020-05-03 13:54

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

查看更多
登录 后发表回答