本文介绍了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:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3embedded./ doesn't exist.    MyProject.Droid
Error   5   Please install package: 'Android Support Library' available in SDK installer. Java library file C:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3embeddedclasses.jar doesn't exist.    MyProject.Droid
Error   8   Please install package: 'Android Support Library' available in SDK installer. Java library file C:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3embeddedlibs/internal_impl-21.0.3.jar doesn't exist.  MyProject.Droid
Error   4   Reason: C:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3android_m2repository_r10.zip is not a valid zip file   MyProject.Droid
Error   7   Reason: C:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3android_m2repository_r10.zip is not a valid zip file   MyProject.Droid
Error   10  Reason: C:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3android_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:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3content 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:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3content 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:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3content directory.   MyProject.Droid

有谁知道我该如何解决它?我使用管理员权限检查了我的 SDK 管理器,并且我已经安装了 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:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3android_m2repository_r10.zip 不是有效的 zip 文件

C:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3android_m2repository_r10.zip is not a valid zip file

如何解决

请下载https://dl-ssl.google.com/android/repository/android_m2repository_r10.zip 并解压到 C:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3content 目录.

Please download https://dl-ssl.google.com/android/repository/android_m2repository_r10.zip and extract it to the C:UsersdevAppDataLocalXamarinAndroid.Support.v421.0.3content directory.

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

07-31 03:51