【发布时间】:2017-02-08 05:10:59
【问题描述】:
我正在 Visual Studio 中开发一个 Android 应用。在 Android SDK 管理器中,安装了从 API 级别 23 (Android 6.0) 到 API 级别 25 (Android 7.1) 的所有 API。
但是当我在 Visual Studio 中打开项目属性时,“使用 Android 版本编译”选项仅显示 api 直到 23(Android 6.0)。我想以 7.1 为目标,因为大多数智能手机现在都拥有它。
如果我使用 Android 6.0,还有另一个问题。某些包(如 Xamarin.Firebase.Messaging)无法安装并出现以下错误。
Install-Package: Could not install package 'Xamarin.Firebase.Messaging 42.1001.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.
我可以看到 API 级别 25 下可用的所有选项都安装在 SDK 管理器中。请帮助我,以便我可以从 Visual Studio Android 应用程序定位 Android 7.1。谢谢
【问题讨论】:
标签: android xamarin visual-studio-2015 xamarin.android