Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
495 views
in Technique[技术] by (71.8m points)

xamarin.android - Xamarin Forms Android Error: Please install package 'Android Support Library'

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

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The error message tells you pretty explicitly

  1. what the error is

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

  2. How to fix it

    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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...