android - 获取 Facebook SDK NuGet 时出错

标签 android facebook xamarin xamarin.android

我无法通过 Outercurve 获取 Facebook SDK。

错误:

Could not install package 'Facebook 7.0.6'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v7.1', 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.

我曾尝试对SDK 进行一些修改并降低android 版本,但在所有情况下都无法下载。我也尝试了新项目,以确保当前项目没有问题。目前我没有想到其他解决方案。有帮助吗?

最佳答案

感谢 Jason 的建议,我找到了解决方案。有一个Facebook Component对于 Xamarin。您不能将任意 Nuget 包与 Xamarin 一起使用 - 它必须是针对兼容框架的包。不幸的是,Nuget 管理器不允许您轻松过滤掉不兼容的包。

关于android - 获取 Facebook SDK NuGet 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45566470/

相关文章:

java - 如何在Android中返回FileInputStream的值

android - 在另一个事件中停止线程

php - Facebook 钓鱼检测

iOS Facebook SDK 在 iOS 4.1 和 4.2 中崩溃

javascript - 如何使用 facebook/google 登录按钮通过 React redux 存储用户信息

android - 无法在 Android 中找到 PCLstorage 路径

Android 外部写入允许但文件未找到异常

android - 如何在微信中添加我的表情应用

xamarin - 找不到 API Level 的 android.jar 。沙马林

logging - Xamarin Android - 在 Release模式下打印到应用程序输出