Xamarin.Forms: Android project project Build Error - Missing Files Inside AppData \ Local \ Xamarin Folders

I am trying to use Xamarin.Forms. I created a solution called "App2". Visual Studio automatically created the following projects:

  • App2 (Portable)
  • App2.Droid
  • App2.iOS

When I try to compile an Android project (App2.Droid), I get the following errors:

Download failed. Download the https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and place it in the C: \ Users \ pedro.costa \ AppData \ Local \ Xamarin \ Android.Support.Design \ 23.0.1.3 directory. Cause of App2.Droid: One or more errors. App2.Droid
Please install the package: "Xamarin.Android.Support.Design" is available in the SDK. Java library file C: \ Users \ pedro.costa \ AppData \ Local \ Xamarin \ Android.Support.Design \ 23.0.1.3 \ built-in \ classes.jar does not exist. Error loading App2.Droid. Download the https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and place it in the C: \ Users \ pedro.costa \ AppData \ Local \ Xamarin \ Android.Support.Design \ 23.0.1.3 directory. Cause of App2.Droid: One or more errors. App2.Droid
Please install the package: "Xamarin.Android.Support.Design" is available in the SDK. The Android resource directory C: \ Users \ pedro.costa \ AppData \ Local \ Xamarin \ Android.Support.Design \ 23.0.1.3 \ embedded./ does not exist. App2.Droid

I already tried:

  • Download the android_m2repository_r22.zip file and place it in the C: \ Users \ pedro.costa \ AppData \ Local \ Xamarin \ Android.Support.Design \ 23.0.1.3 folder
  • Download the file and extract it to the folder
  • Delete the folder C: \ Users \ pedro.costa \ AppData \ Local \ Xamarin \ Android.Support.Design \ 23.0.1.3 and recompile the project
  • Delete the folder C: \ Users \ pedro.costa \ AppData \ Local \ Xamarin \ zips and recompile the project.
  • Update the Xamarin.Android.Support packages. * nuget, but when I try it, I also get these build errors.

I have done a lot of research and it seems to be in the Android.Support folders. * There should be files inside it and that these files should be downloaded when the Android solution is created, but for me this does not happen.

+5
source share
5 answers

In other answers to this problem, I saw that simply by deleting all the contents from the Android.Support.Design folder, Visual Studio will load it again after restoring the project.

The problem in my case was the proxy problem. When I set up an environment for accessing the Internet without a proxy, Visual Studio loads the necessary files and folders during recovery.

+2
source

Try this job:

  • Go to the folder C:\Users\[user-name]\AppData\Local\Xamarin\zips .
  • Delete all zip files.
  • Remove /bin and /obj from your project.
  • Clean and create your project.

It may take some time to create and debug the project.

+4
source

1.download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip

2. eat on 2A3A8A6D6826EF6CC653030E7D695C41.zip

3.copy to C: \ Users \ User \ AppData \ Local \ Xamarin \ zip

4.rebuild

+3
source

Do not extract the zip to the \23.0.1.3 folder or just put it there that will not work, not against the error message. You must put the zip in the \zip folder after deleting the existing zip code, you may need to rename the zip code you downloaded: 2A3A8A6D6826EF6CC653030E7D695C41.zip

But if you do not want to manually download the support repository, you can simply delete everything in the %USER%\AppData\Local\Xamarin\ folder and rebuild and wait.

0
source

there is a folder called zips at this address C:\Users\[user-name]\AppData\Local\Xamarin\zips first you need to check that the file is in extraction mode, we see an error there, this is a currupt format, then you can replace these two files 1) 2A3A8A6D6826EF6CC653030E7D695C41.zip replace with this rename the link using 2A3A8A6D6826EF6CC653030E7D695C41

2) 96659D653BDE0FAEDB818170891F2BB0.zip replace with this rename the link with 96659D653BDE0FAEDB818170891F2BB0

then rebuild the project

0
source

Source: https://habr.com/ru/post/1243082/


All Articles