Xamarin Forms Android错误:请安装软件包"Android支持库" [英] Xamarin Forms Android Error: Please install package 'Android Support Library'

查看:100
本文介绍了Xamarin Forms Android错误:请安装软件包"Android支持库"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将项目上传到Git,并使用了自动生成的Xamarin/Windows/MacOS/VisualStudio .gitignore文件.我在iOS上做了很多工作和测试,但是现在我回到了android,但是在构建Project.Droid版本时,出现以下错误:

I recently uploaded my project to Git, and used a auto-generated Xamarin/Windows/MacOS/VisualStudio .gitignore file. I did a lot of work and testing on iOS, but now I'm coming back to android but upon building the Project.Droid version, I get the following errors:

Error   11  Please install package: 'Android Support Library' available in SDK installer. Android resource directory C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\embedded\./ doesn't exist.    MyProject.Droid
Error   5   Please install package: 'Android Support Library' available in SDK installer. Java library file C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\embedded\classes.jar doesn't exist.    MyProject.Droid
Error   8   Please install package: 'Android Support Library' available in SDK installer. Java library file C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\embedded\libs/internal_impl-21.0.3.jar doesn't exist.  MyProject.Droid
Error   4   Reason: C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\android_m2repository_r10.zip is not a valid zip file   MyProject.Droid
Error   7   Reason: C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\android_m2repository_r10.zip is not a valid zip file   MyProject.Droid
Error   10  Reason: C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\android_m2repository_r10.zip is not a valid zip file   MyProject.Droid
Error   3   Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r10.zip and extract it to the C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\content directory.   MyProject.Droid
Error   6   Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r10.zip and extract it to the C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\content directory.   MyProject.Droid
Error   9   Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r10.zip and extract it to the C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\content directory.   MyProject.Droid

有人知道我该如何解决吗?我已使用管理员权限检查了我的SDK Manager,并且已经安装了Android支持库

Does anyone know how can I fix it? I checked my SDK Manager using admin rights and I already have the Android Support Library installed

推荐答案

错误消息非常明确地告诉您

The error message tells you pretty explicitly

  1. 错误是什么

  1. what the error is

C:\ Users \ dev \ AppData \ Local \ Xamarin \ Android.Support.v4 \ 21.0.3 \ android_m2repository_r10.zip不是有效的zip文件

C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\android_m2repository_r10.zip is not a valid zip file

如何修复

请下载 https://dl-ssl.google.com/android/repository/android_m2repository_r10.zip 并将其解压缩到C:\ Users \ dev \ AppData \ Local \ Xamarin \ Android.Support.v4 \ 21.0.3 \ content目录.

Please download https://dl-ssl.google.com/android/repository/android_m2repository_r10.zip and extract it to the C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\content directory.

这篇关于Xamarin Forms Android错误:请安装软件包"Android支持库"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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