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

余生颓废 提交于 2019-12-31 06:23:26

问题


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:


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

re: Xamarin Android Doc: Target Framework



来源:https://stackoverflow.com/questions/47745689/severity-code-description-project-file-line-suppression-state-error-downloading

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!