2016-08-07 67 views
1

當我創建Xamarin項目,並建立Droid的它會不錯... 但是,當我使用添加控制檯例如任何NuGet包:一個過時的「Android SDK中構建工具」錯誤的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'  

但我沒有任何舊內建工具...

+0

請仔細閱讀:「但我沒有任何舊的Build-Tools ...」 – M4HdYaR

+0

我面臨着確切的問題,請讓我們知道如果你有它的騎。 – Akbari

+0

@Akbari這真的很煩人 – M4HdYaR

回答

1

我去構建工具下SDK文件夾和我有「機器人-6」文件夾,它包含了內置的工具版本23.0.3但是因爲它的文件夾名稱,Xamarin需要的是一個老版本。

我刪除它,然後所有的事情去了吧...

因此,文件夾名稱是Xamarin重要。

0

你要打開的Android SDK管理器,檢查你所使用的工具的版本。如果您使用Visual Studio,甚至可以使用Android工具欄上的按鈕(View - Toolbars - Android)從IDE打開它。一旦打開,您將能夠看到您已安裝的Android構建工具的版本,以及它們是否與您使用的庫所需的版本相匹配。 Android SDK manager UI

+0

我已經說過我沒有任何舊的Build-tools – M4HdYaR