简体   繁体   English

在Xamarin.Forms中创建新项目时出现错误

[英]Getting Error while creating new project in Xamarin.Forms

I have just installed Xamarin and create simple new project. 我刚刚安装了Xamarin并创建了简单的新项目。 After just creation of project I am getting error like: 刚创建项目后,我得到如下错误:

在此处输入图片说明

What is the problem? 问题是什么?

You have to change the target framework for compile to “Android 7.1(Nougat)”. 您必须将要编译的目标框架更改为“ Android 7.1(牛轧糖)”。

Here are Steps to change the target compile framework : Right Click on Android Project -> Properties 以下是更改目标编译框架的步骤:右键单击Android Project-> Properties

在此处输入图片说明

Current Android application properties(Compile using Android 6.0) 当前的Android应用程序属性(使用Android 6.0进行编译)

在此处输入图片说明

Change Compile Android Version to Android 7.1 (Nougat) 将Compile Android版本更改为Android 7.1(牛轧糖)

在此处输入图片说明

When Change the target compilation version of Android , Visual Studio will ask you to restart the project to configure itself… "Yes" to close and reopen , after the reboot go to NuGet package manager to update Android packages and Select Android Packages v.25.3.1.. when the update ends Re-Build the project 更改Android的目标编译版本时,Visual Studio会要求您重新启动项目以对其进行自我配置…“是”以关闭并重新打开,重新引导后转到NuGet软件包管理器以更新Android软件包并选择“ Android软件包v.25.3”。 1 ..更新结束后,重新构建项目

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Prism为Xamarin.Forms创建新项目时出错 - Error on creating new project with Prism for Xamarin.Forms 创建项目 Prism Unity App (Xamarin.Forms) 时出现错误 - I'm getting error when creating project Prism Unity App (Xamarin.Forms) Xamarin.forms共享项目在创建时给出错误 - Xamarin.forms shared project giving error while creation 构建新的Xamarin.Forms项目失败 - Building a new Xamarin.Forms project fails 在VS 2017上创建Xamarin.Forms项目时的空白解决方案¿如何在不使用VS模板的情况下添加Xamarin Forms? - Blank solution while creating Xamarin.Forms project on VS 2017 ¿How to add Xamarin Forms without VS template? 创建Xamarin.Forms跨平台应用程序时,“此项目需要加载Visual Studio更新”错误 - “This project requires a Visual Studio update to load” error when creating a Xamarin.Forms Cross-Platform Application 创建Xamarin.Forms跨平台应用程序时出现“此项目需要Visual Studio更新才能加载”错误 - “This project requires a Visual Studio update to load” error when creating a Xamarin.Forms Cross-Platform Application 在项目 Xamarin.Forms 中构建时出现错误“值不能为空参数名称:方​​法” - Error “Value cannot be null parameter name: method” while building in project Xamarin.Forms 在 Xamarin.Forms iOS 中,获取 HttpRequestException:锁定设备时发送请求时出错 - In Xamarin.Forms iOS, Getting HttpRequestException: An error occurred while sending the request when locking the device 无法在全新项目中引用Xamarin.Forms - Unable to reference Xamarin.Forms in brand new project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM