Xamarin Forms Android Error: Please install package 'Android Support Library'

后端 未结 13 1138
名媛妹妹
名媛妹妹 2020-12-01 12:56

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 com

相关标签:
13条回答
  • 2020-12-01 13:24

    It looks like the zip can get corrupted (I think I might have killed VS as I hadn't realised it was downloading a >100MB file).

    If that's the case, just clear out the zip cache: C:\Users\dev\AppData\Local\Xamarin\zips and they'll all be re-downloaded.

    0 讨论(0)
  • 2020-12-01 13:29

    Delete all foldeC:\Users[username]\AppData\Local\Xamarin. And then rebuild your project.

    Hope this help

    0 讨论(0)
  • 2020-12-01 13:30

    1: Download "https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip" into your (mediafire.com or other upload center websites)

    2: Download "android_m2repository_r22.zip" from your mediafire panel into your computer

    3: Rebuild your solution to get list of error codes

    4: Find error(Error Reason: "C:\Users\Vahid\AppData\Local\Xamarin\zips\96659D653BDE0FAEDB818170891F2BB0.zip" is not a valid zip file)

    5: Copy your android_m2repository_r22.zip into "C:\Users\Vahid\AppData\Local\Xamarin\zips\" directory

    6: Rename "android_m2repository_r22.zip" to "96659D653BDE0FAEDB818170891F2BB0.zip"

    7: Rebuild your solution

    8: Enjoy xamarin form.

    List of md5 name for your download file are available in "https://developer.xamarin.com/guides/android/troubleshooting/resolving-library-installation-errors/#Manually_Downloading_m2repository"

    0 讨论(0)
  • 2020-12-01 13:31

    Sometimes Android Studio will not download package because of network issues.

    Here the solution for that.

    Download zip package directly from https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip

    Delete existing package zip from C:\Users\josec\AppData\Local\Xamarin\zips and Put the downloaded package zip into it.

    0 讨论(0)
  • 2020-12-01 13:31

    Please download and install 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.

    0 讨论(0)
  • 2020-12-01 13:37

    I'm just posting the Mohamed Elrashid's comment as an answer Because I think this is the best solution. Because it is in a comment and most of the people do not try this first.

    You can DELETE everything in Corresponding the folder C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\ and Xamarin will automatically download again

    It is valid for 22.2.1 version too, so I think it is a general solution of every version(guess)

    EDIT => Please follow the ans by Jason that always works.

    Suggestion: all these kind off error has a link for the zip to download and where to save it to fix. So for all other zip files follow the same ans.

    0 讨论(0)
提交回复
热议问题