我尝试安装Xamarin.Facebook.Android SDK for Client Flow Facebook登录但是当我去安装软件包时,软件包管理器会执行以下操作:
Attempting to gather dependency information for package 'Xamarin.Facebook.Android.4.22.0' with respect to project 'NapChat.Droid', targeting 'MonoAndroid,Version=v6.0'
Attempting to resolve dependencies for package 'Xamarin.Facebook.Android.4.22.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Xamarin.Facebook.Android.4.22.0'
Resolved actions to install package 'Xamarin.Facebook.Android.4.22.0'
Install failed. Rolling back...
Package 'Xamarin.Facebook.Android.4.22.0' does not exist in project 'NapChat.Droid'
Package 'Xamarin.Facebook.Android.4.22.0' does not exist in folder 'C:\Users\Brandon\Desktop\NCHAT\NapChat\packages'
Could not install package 'Xamarin.Facebook.Android 4.22.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
========== Finished ==========
如何修复此问题以安装Facebook SDK?
答案 0 :(得分:1)
从错误日志中,您当前的Mono.Android版本为6.0,不符合Facebook SDK 4.22.0的要求:
因此,强烈建议通过VS安装程序或download page安装最新的Xamarin.Android。
或者,您可以安装版本4.16.1的Xamarin.Facebook.Android,它定位于Mono.Android 4.0.3的最小版本。