Xamarin正在寻找错误位置的Android sdks&给出构建错误

时间:2016-11-29 18:45:34

标签: c# android xamarin xamarin.android

我有一个我无法解决的持续构建问题,我已尝试过xamarin支持论坛。

当我构建项目时,它无法找到我的任何Xamarin.Android.Support。*包。

我将所有的Xamarin.Android.Support。*库都包含在nuget包中。它们在我的packages.config和csproj文件中显示正确,我项目中的references文件夹显示它们已被识别。

问题似乎是构建在一个完全不同的文件夹中查找这些包,这是我的本地用户AppData文件夹。我不知道为什么它在那里,但我认为这是问题。

我迷路了,无法弄清楚为什么会在这里看。

错误详情:

Severity    Code    Description Project File    Line    Suppression State
Error       Please install package: 'Xamarin.Android.Support.Animated.Vector.Drawable' available in SDK installer. Java library file C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.Animated.Vector.Drawable\23.3.0.0\embedded\classes.jar doesn't exist.  CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.Animated.Vector.Drawable' available in SDK installer. Android resource directory C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.Animated.Vector.Drawable\23.3.0.0\embedded\./ doesn't exist.  CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.Design' available in SDK installer. Android resource directory C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.Design\23.3.0.0\embedded\./ doesn't exist.  CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.Design' available in SDK installer. Java library file C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.Design\23.3.0.0\embedded\classes.jar doesn't exist.  CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Android resource directory C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.3.0.0\embedded\./ doesn't exist.  CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.3.0.0\embedded\classes.jar doesn't exist.  CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.3.0.0\embedded\libs/internal_impl-23.3.0.jar doesn't exist.    CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.v7.AppCompat' available in SDK installer. Android resource directory C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\23.3.0.0\embedded\./ doesn't exist.  CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.v7.AppCompat' available in SDK installer. Java library file C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\23.3.0.0\embedded\classes.jar doesn't exist.  CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.v7.CardView' available in SDK installer. Android resource directory C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.CardView\23.3.0.0\embedded\./ doesn't exist.    CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.v7.CardView' available in SDK installer. Java library file C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.CardView\23.3.0.0\embedded\classes.jar doesn't exist.    CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Android resource directory C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.3.0.0\embedded\./ doesn't exist.  CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Java library file C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.3.0.0\embedded\classes.jar doesn't exist.  CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Java library file C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.3.0.0\embedded\libs/internal_impl-23.3.0.jar doesn't exist.    CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.v7.RecyclerView' available in SDK installer. Android resource directory C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.RecyclerView\23.3.0.0\embedded\./ doesn't exist.    CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.v7.RecyclerView' available in SDK installer. Java library file C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.RecyclerView\23.3.0.0\embedded\classes.jar doesn't exist.    CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.Vector.Drawable' available in SDK installer. Android resource directory C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.Vector.Drawable\23.3.0.0\embedded\./ doesn't exist.    CiiCommon.Droid         
Error       Please install package: 'Xamarin.Android.Support.Vector.Drawable' available in SDK installer. Java library file C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.Vector.Drawable\23.3.0.0\embedded\classes.jar doesn't exist.    CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Reason: C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\zips\2A3A8A6D6826EF6CC653030E7D695C41.zip is not a valid zip file   CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.Animated.Vector.Drawable\23.3.0.0\content directory.  CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.Animated.Vector.Drawable\23.3.0.0\content directory.  CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.Design\23.3.0.0\content directory.    CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.Design\23.3.0.0\content directory.    CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.3.0.0\content directory.    CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.3.0.0\content directory.    CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.3.0.0\content directory.    CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\23.3.0.0\content directory.  CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\23.3.0.0\content directory.  CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.CardView\23.3.0.0\content directory.   CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.CardView\23.3.0.0\content directory.   CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.3.0.0\content directory.    CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.3.0.0\content directory.    CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.3.0.0\content directory.    CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.RecyclerView\23.3.0.0\content directory.   CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.v7.RecyclerView\23.3.0.0\content directory.   CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.Vector.Drawable\23.3.0.0\content directory.   CiiCommon.Droid         
Error       Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the C:\Users\jwierzba.ASSOCIATIONVOIC\AppData\Local\Xamarin\Xamarin.Android.Support.Vector.Drawable\23.3.0.0\content directory.   CiiCommon.Droid         

编辑:它不是Build unsuccessful : Error with Android project in Xamarin.Forms的副本,因为此问题与损坏的zip文件有关。

1 个答案:

答案 0 :(得分:2)

有时Visual Studio会在下载所需的相应库时超时,并且会出现构建问题,因为某些软件包似乎已安装,但文件已损坏。

我建议做的是关闭Visual Studio,删除C:\ Users \ jwierzba.ASSOCIATIONVOIC \ AppData \ Local \ Xamarin \ zips中的所有文件,重新启动Visual Studio,然后重建项目。这将迫使Visual Studio从头开始再次下载这些库。

您可以通过右键单击解决方案资源管理器中的特定项目,选择“属性”,导航到“构建”选项卡,然后更改输出路径来修复260个字符的限制。