无法构建Xamarin Android项目:正在使用过时的"Android SDK Build-tools" [英] Failing to build Xamarin Android project: An outdated of 'Android SDK Build-tools' is in use

查看:109
本文介绍了无法构建Xamarin Android项目:正在使用过时的"Android SDK Build-tools"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译我的Xamarin Form解决方案的Android项目,但由于以下异常而失败:

I'm trying to compile Android project of my Xamarin Form solution, and it fails with the following exception:

此版本的Android支持库不支持使用过时的"Android SDK Build-tools".您必须从"Android SDK管理器"中工具"部分中卸载所有早于23.0.0的"Android SDK Build-tools"版本. 您还需要安装"Android SDK Build-tools"版本23.0.0或更高版本. Invoice.Android

An outdated of 'Android SDK Build-tools' is in use which this version of Android Support Library does not support. You must uninstall any 'Android SDK Build-tools' versions older than 23.0.0 from the 'Tools' section in your 'Android SDK Manager' You also need to install 'Android SDK Build-tools' version 23.0.0 or higher. Invoice.Android

这是在我更新了一些使用TelerikSyncFusion的组件之后发生的.

This happened after I updated some components for using Telerik, and SyncFusion.

我在,其中包括清洁解决方案和更新build tools,但它们都没有起到任何作用.

I've tried every suggested solution at here, including cleaning solution and updating build tools, and none of them did any good.

我正在使用Android SDK Manager 24.4.1build-tools 23.0.3,它们显然是最新版本.

I'm using Android SDK Manager 24.4.1, and build-tools 23.0.3 which apparently are the latest versions.

我已附上所有已安装组件的图片,如果您需要更多信息,请告诉我.

I've attached a picture of all installed components, please let me know if you need any more information.

这是我的packages.config:

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="23.3.0" targetFramework="monoandroid44" />
  <package id="Xamarin.Android.Support.Design" version="23.3.0" targetFramework="monoandroid44" />
  <package id="Xamarin.Android.Support.v4" version="23.3.0" targetFramework="monoandroid44" />
  <package id="Xamarin.Android.Support.v7.AppCompat" version="23.3.0" targetFramework="monoandroid44" />
  <package id="Xamarin.Android.Support.v7.CardView" version="23.3.0" targetFramework="monoandroid44" />
  <package id="Xamarin.Android.Support.v7.MediaRouter" version="23.3.0" targetFramework="monoandroid44" />
  <package id="Xamarin.Android.Support.v7.RecyclerView" version="23.3.0" targetFramework="monoandroid44" />
  <package id="Xamarin.Android.Support.Vector.Drawable" version="23.3.0" targetFramework="monoandroid44" />
  <package id="Xamarin.Forms" version="2.3.0.49" targetFramework="monoandroid44" />
</packages>

这是完整的build output:

正在还原NuGet软件包... 要阻止NuGet在构建过程中还原软件包,请打开"Visual Studio选项"对话框,单击软件包管理器"节点,然后取消选中允许NuGet在构建过程中下载丢失的软件包". 1> ------重建所有已开始的项目:项目:发票,配置:调试任何CPU ------ 1> C:\ Users {user} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ Invoice \ Views \ InfoView.xaml.cs(28,17,28,38):警告CS0618:"Label.Font"已过时:请使用类本身上的Font属性.在v1.3.0中已过时" 1> C:\ Users {user} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ Invoice \ Views \ ItemView.xaml.cs(57,13,57,34):警告CS0618:"Label.Font"已过时:请使用类本身上的Font属性.在v1.3.0中已过时" 1> C:\ Users {用户} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ Invoice \ Views \ ItemView.xaml.cs(68,21,68,41):警告CS0618:"Label.Font"已过时:请使用类本身上的Font属性.在v1.3.0中已过时" 1> C:\ Users {user} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ Invoice \ Views \ ItemView.xaml.cs(68,44,68,68):警告CS0618:"Label.Font"已过时:请使用类本身上的Font属性.在v1.3.0中已过时' 1> C:\ Users {用户} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ Invoice \ Views \ ItemView.xaml.cs(68,71,68,98):警告CS0618:"Label.Font"已过时:请使用类本身上的Font属性.在v1.3.0中已过时" 1> C:\ Users {用户} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ Invoice \ Views \ ItemView.xaml.cs(69,25,69,56):警告CS0618:"Label.Font"已过时:请使用类本身上的Font属性.在v1.3.0中已过时" 1> C:\ Users {用户} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ Invoice \ Views \ ItemView.xaml.cs(121,17,121,31):警告CS0618: 'Label.Font'已过时:'请使用类本身的Font属性.在v1.3.0中已过时" 1> C:\ Users {用户} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ Invoice \ Views \ ItemView.xaml.cs(127,17,127,33):警告CS0618: 'Label.Font'已过时:'请使用类本身的Font属性.在v1.3.0中已过时" 1> C:\ Users {用户} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ Invoice \ Views \ ItemView.xaml.cs(131,17,131,35):警告CS0618: 'Label.Font'已过时:'请使用类本身的Font属性.在v1.3.0中已过时" 1>发票-> C:\ Users {user} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ Invoice \ bin \ Debug \ XamarinIOInvoice.dll 2> ------重建所有已开始的项目:项目:Invoice.Android,配置:调试任何CPU ------ 2> C:\ Users {user} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ Invoice.Android \ Properties \ AndroidManifest.xml:警告XA0101:@ {Content)构建操作是不支持 2> C:\ Users {} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ packages \ Xamarin.Android.Support.Vector.Drawable.23.3.0 \ build \ Xamarin.Android .Support.Vector.Drawable.targets(40,5):错误:正在使用过时的"Android SDK构建工具",此版本的Android支持库不支持.您必须从"Android SDK管理器"中工具"部分中卸载任何早于23.0.0的"Android SDK Build-tools"版本. 2> C:\ Users {用户} \ AppData \ Local \ Syncfusion \ EssentialStudio \ 14.2.0.26 \ Xamarin \ sample \ Forms \ Invoice \ packages \ Xamarin.Android.Support.Vector.Drawable.23.3.0 \ build \ Xamarin. Android.Support.Vector.Drawable.targets(40,5):错误:您还需要安装23.0.0或更高版本的"Android SDK Build-tools". ===========全部重建:1成功,1失败,0跳过==========

Restoring NuGet packages... To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.' 1>------ Rebuild All started: Project: Invoice, Configuration: Debug Any CPU ------ 1>C:\Users{user}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\Invoice\Views\InfoView.xaml.cs(28,17,28,38): warning CS0618: 'Label.Font' is obsolete: 'Please use the Font attributes which are on the class itself. Obsoleted in v1.3.0' 1>C:\Users{user}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\Invoice\Views\ItemView.xaml.cs(57,13,57,34): warning CS0618: 'Label.Font' is obsolete: 'Please use the Font attributes which are on the class itself. Obsoleted in v1.3.0' 1>C:\Users{user}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\Invoice\Views\ItemView.xaml.cs(68,21,68,41): warning CS0618: 'Label.Font' is obsolete: 'Please use the Font attributes which are on the class itself. Obsoleted in v1.3.0' 1>C:\Users{user}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\Invoice\Views\ItemView.xaml.cs(68,44,68,68): warning CS0618: 'Label.Font' is obsolete: 'Please use the Font attributes which are on the class itself. Obsoleted in v1.3.0' 1>C:\Users{user}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\Invoice\Views\ItemView.xaml.cs(68,71,68,98): warning CS0618: 'Label.Font' is obsolete: 'Please use the Font attributes which are on the class itself. Obsoleted in v1.3.0' 1>C:\Users{user}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\Invoice\Views\ItemView.xaml.cs(69,25,69,56): warning CS0618: 'Label.Font' is obsolete: 'Please use the Font attributes which are on the class itself. Obsoleted in v1.3.0' 1>C:\Users{user}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\Invoice\Views\ItemView.xaml.cs(121,17,121,31): warning CS0618: 'Label.Font' is obsolete: 'Please use the Font attributes which are on the class itself. Obsoleted in v1.3.0' 1>C:\Users{user}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\Invoice\Views\ItemView.xaml.cs(127,17,127,33): warning CS0618: 'Label.Font' is obsolete: 'Please use the Font attributes which are on the class itself. Obsoleted in v1.3.0' 1>C:\Users{user}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\Invoice\Views\ItemView.xaml.cs(131,17,131,35): warning CS0618: 'Label.Font' is obsolete: 'Please use the Font attributes which are on the class itself. Obsoleted in v1.3.0' 1> Invoice -> C:\Users{user}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\Invoice\bin\Debug\XamarinIOInvoice.dll 2>------ Rebuild All started: Project: Invoice.Android, Configuration: Debug Any CPU ------ 2>C:\Users{user}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\Invoice.Android\Properties\AndroidManifest.xml : warning XA0101: @(Content) build action is not supported 2>C:\Users{}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets(40,5): error : An outdated of 'Android SDK Build-tools' is in use which this version of Android Support Library does not support. You must uninstall any 'Android SDK Build-tools' versions older than 23.0.0 from the 'Tools' section in your 'Android SDK Manager' 2>C:\Users{user}\AppData\Local\Syncfusion\EssentialStudio\14.2.0.26\Xamarin\sample\Forms\Invoice\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets(40,5): error : You also need to install 'Android SDK Build-tools' version 23.0.0 or higher. ========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

更新

我刚刚更新到build-tools 24.0.1,但该错误不会消失!

I just updated to build-tools 24.0.1, but the error is not going anywhere!

此问题仅存在于Xamarin Form,我可以很好地编译Android项目.

This problem exists only for Xamarin Form, I can compile Android projects just fine.

推荐答案

转到您的SDK Build-Tools文件夹,然后将该文件夹重命名为23.0.3

Go to your SDK Build-Tools folder and rename the folder to 23.0.3

我在这里也遇到了这个问题: Xamarin上过时的"Android SDK生成工具"错误

I had this problem too here : An outdated of 'Android SDK Build-tools' Error on Xamarin

这篇关于无法构建Xamarin Android项目:正在使用过时的"Android SDK Build-tools"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆