Bug 43245 - Inaccurate "Download failed. Please download {0} and put it to the {1} directory." and "Please install package: '{0}' available in SDK installer" error messages related to Xamarin.Android.Support packages
Summary: Inaccurate "Download failed. Please download {0} and put it to the {1} direct...
Status: CONFIRMED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 7.0 (C8)
Hardware: PC All
: --- normal
Target Milestone: ---
Assignee: Brendan Zagaeski (Xamarin Team, assistant)
URL:
Depends on:
Blocks:
 
Reported: 2016-08-10 18:10 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2016-11-02 19:15 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 43245 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Brendan Zagaeski (Xamarin Team, assistant) 2016-08-10 18:10:03 UTC
Inaccurate "Download failed. Please download {0} and put it to the {1} directory." and "Please install package: '{0}' available in SDK installer" error messages related to Xamarin.Android.Support packages




## Steps to replicate

1. Create a new "Android > App > Blank Android App" in Xamarin Studio.

2. Add the Xamarin.Android.Support.v4 NuGet package.  I used version 23.4.0.1.

3. Move the cached downloads for the upstream Android libraries out of the way (or delete them):

- "$HOME/.local/share/Xamarin/Xamarin.Android.Support.v4/23.4.0.0"
- "$HOME/.local/share/Xamarin/zips/F16A3455987DBAE5783F058F19F7FCDF.zip"

3. Disconnect the computer from the internet.

4. Build the project.




## Results



The build produces 2 error messages.  Both are inaccurate.

> Error XA5208: Download failed. Please download
> https://dl-ssl.google.com/android/repository/android_m2repository_r32.zip
> and put it to the
> /Users/macuser/.local/share/Xamarin/Xamarin.Android.Support.v4/23.4.0.0
> directory.

This message is inaccurate because the correct location for the downloaded .zip file is:

"$HOME/.local/share/Xamarin/zips/F16A3455987DBAE5783F058F19F7FCDF.zip"



> Error XA5207: Please install package: 'Xamarin.Android.Support.v4'
> available in SDK installer. Java library file
> /Users/macuser/.local/share/Xamarin/Xamarin.Android.Support.v4/23.4.0.0/embedded/classes.jar
> doesn't exist.

This error is less accurate than the first error:

(a) "SDK installer" is ambiguous.  It could mean "the Xamarin SDK installer," or it could be referring to the Android SDK Manager.

(b) In fact, _neither_ the Xamarin SDK installer nor the Android SDK Manager provide a way to install anything that will resolve this error.  The correct way to resolve this problem is to follow the instructions from the first error message (once that message is fixed).  As currently worded, this error message should be _removed_ in favor of the first error message.




## Version info (brief)

This is the behavior of "Cycle 7 – Service Release 1" as well as the current tip of xamarin-android/master.
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2016-08-10 21:50:15 UTC
PR submitted: https://github.com/xamarin/xamarin-android/pull/155