2016-08-07 4 views
1

Когда я создаю проект Xamarin и построить дроидов он идет хорошо ... Но когда я добавить любой пакет NuGet с помощью консоли, например:Устаревшая от ошибки «Android SDK BUILD-TOOLS» на Xamarin

Установить -package Acr.UserDialogs или установить-пакет Rg.Plugins.Popup Он показывает мне это на консоли:

PM> Install-Package Acr.UserDialogs 
Attempting to gather dependencies information for package 'Acr.UserDialogs.6.1.1' with respect to project 'TestAcrDialogs.Droid', targeting 'MonoAndroid,Version=v7.0' 
Attempting to resolve dependencies for package 'Acr.UserDialogs.6.1.1' with DependencyBehavior 'Lowest' 
Resolving actions to install package 'Acr.UserDialogs.6.1.1' 
Resolved actions to install package 'Acr.UserDialogs.6.1.1' 
Removed package 'Xamarin.Android.Support.Design.23.0.1.3' from 'packages.config' 
Successfully uninstalled 'Xamarin.Android.Support.Design.23.0.1.3' from TestAcrDialogs.Droid 
Removed package 'Xamarin.Android.Support.v4.23.0.1.3' from 'packages.config' 
Successfully uninstalled 'Xamarin.Android.Support.v4.23.0.1.3' from TestAcrDialogs.Droid 
Removed package 'Xamarin.Android.Support.v7.AppCompat.23.0.1.3' from 'packages.config' 
Successfully uninstalled 'Xamarin.Android.Support.v7.AppCompat.23.0.1.3' from TestAcrDialogs.Droid 
Removed package 'Xamarin.Android.Support.v7.CardView.23.0.1.3' from 'packages.config' 
Successfully uninstalled 'Xamarin.Android.Support.v7.CardView.23.0.1.3' from TestAcrDialogs.Droid 
Removed package 'Xamarin.Android.Support.v7.MediaRouter.23.0.1.3' from 'packages.config' 
Successfully uninstalled 'Xamarin.Android.Support.v7.MediaRouter.23.0.1.3' from TestAcrDialogs.Droid 
Removed package 'Xamarin.Forms.2.0.0.6482' from 'packages.config' 
Successfully uninstalled 'Xamarin.Forms.2.0.0.6482' from TestAcrDialogs.Droid 
Adding package 'Acr.Support.2.1.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Acr.Support.2.1.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Acr.Support.2.1.0' to 'packages.config' 
Successfully installed 'Acr.Support 2.1.0' to TestAcrDialogs.Droid 
Adding package 'AndHUD.1.2.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'AndHUD.1.2.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'AndHUD.1.2.0' to 'packages.config' 
Successfully installed 'AndHUD 1.2.0' to TestAcrDialogs.Droid 
Adding package 'Splat.1.6.2' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Splat.1.6.2' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Splat.1.6.2' to 'packages.config' 
Successfully installed 'Splat 1.6.2' to TestAcrDialogs.Droid 
Adding package 'Xamarin.Android.Support.v4.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.v4.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.v4.23.3.0' to 'packages.config' 
Successfully installed 'Xamarin.Android.Support.v4 23.3.0' to TestAcrDialogs.Droid 
Adding package 'Xamarin.Android.Support.v7.CardView.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.v7.CardView.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.v7.CardView.23.3.0' to 'packages.config' 
Successfully installed 'Xamarin.Android.Support.v7.CardView 23.3.0' to TestAcrDialogs.Droid 
Adding package 'Xamarin.Android.Support.v7.RecyclerView.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.v7.RecyclerView.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.v7.RecyclerView.23.3.0' to 'packages.config' 
Successfully installed 'Xamarin.Android.Support.v7.RecyclerView 23.3.0' to TestAcrDialogs.Droid 
Adding package 'Xamarin.Android.Support.Vector.Drawable.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.Vector.Drawable.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.Vector.Drawable.23.3.0' to 'packages.config' 
Successfully installed 'Xamarin.Android.Support.Vector.Drawable 23.3.0' to TestAcrDialogs.Droid 
Adding package 'Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0' to 'packages.config' 
Successfully installed 'Xamarin.Android.Support.Animated.Vector.Drawable 23.3.0' to TestAcrDialogs.Droid 
Adding package 'Xamarin.Android.Support.v7.AppCompat.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.v7.AppCompat.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.v7.AppCompat.23.3.0' to 'packages.config' 
Successfully installed 'Xamarin.Android.Support.v7.AppCompat 23.3.0' to TestAcrDialogs.Droid 
Adding package 'Xamarin.Android.Support.Design.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.Design.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.Design.23.3.0' to 'packages.config' 
Successfully installed 'Xamarin.Android.Support.Design 23.3.0' to TestAcrDialogs.Droid 
Adding package 'Acr.UserDialogs.6.1.1' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Acr.UserDialogs.6.1.1' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Acr.UserDialogs.6.1.1' to 'packages.config' 
Successfully installed 'Acr.UserDialogs 6.1.1' to TestAcrDialogs.Droid 
Adding package 'Xamarin.Android.Support.v7.MediaRouter.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.v7.MediaRouter.23.3.0' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Android.Support.v7.MediaRouter.23.3.0' to 'packages.config' 
Successfully installed 'Xamarin.Android.Support.v7.MediaRouter 23.3.0' to TestAcrDialogs.Droid 
Adding package 'Xamarin.Forms.2.2.0.31' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Forms.2.2.0.31' to folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Added package 'Xamarin.Forms.2.2.0.31' to 'packages.config' 
Successfully installed 'Xamarin.Forms 2.2.0.31' to TestAcrDialogs.Droid 
Removing package 'Xamarin.Android.Support.Design.23.0.1.3' from folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Removed package 'Xamarin.Android.Support.Design.23.0.1.3' from folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Removing package 'Xamarin.Android.Support.v4.23.0.1.3' from folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Removed package 'Xamarin.Android.Support.v4.23.0.1.3' from folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Removing package 'Xamarin.Android.Support.v7.AppCompat.23.0.1.3' from folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Removed package 'Xamarin.Android.Support.v7.AppCompat.23.0.1.3' from folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Removing package 'Xamarin.Android.Support.v7.CardView.23.0.1.3' from folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Removed package 'Xamarin.Android.Support.v7.CardView.23.0.1.3' from folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Removing package 'Xamarin.Android.Support.v7.MediaRouter.23.0.1.3' from folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 
Removed package 'Xamarin.Android.Support.v7.MediaRouter.23.0.1.3' from folder 'C:\Programming\C#\Cross-Platform Xamarin\New\TestAcrDialogs\packages' 

И после того, что я получаю эту ошибку во время строительного проекта Droid:

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'  

Но у меня нет какой-либо старых Build-Tools ...

+0

Прочтите это внимательно: «Но у меня нет старых инструментов для сборки ...» – M4HdYaR

+0

. Я столкнулся с конкретной проблемой, пожалуйста, сообщите нам, если вы поехали по ней. – Akbari

+0

@Akbari Это действительно раздражает – M4HdYaR

ответ

1

я пошел строить-инструменты под SDK папки, и я имел «Android-6» папку и содержал Build-инструменты версии 23.0.3 Но из-за его имя папки, Xamarin принимает эту старую версию ,

Я удалил его и тогда все было сделано правильно ...

Так имя папки важно для Xamarin.

0

Вы должны открыть Android Manager SDK и проверить, какую версию инструментов, которые вы используете. Если вы используете Visual Studio, вы можете даже открыть его из своей среды IDE с помощью кнопки на панели инструментов Android (View - Toolbars - Android). После открытия вы сможете увидеть, какие версии инструментов для сборки Android вы установили и соответствуют ли они тем, которые требуются библиотеками, которые вы используете. Android SDK manager UI

+0

Я уже сказал, что у меня нет старых инструментов для сборки – M4HdYaR