Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Jonathan, Looks like a bug in the Downloader
The problem I'm guessing is that the proxy in use does not support HTTP range requests which is a prerequisite currently for Xamarin.Build.Download to download the dependencies (without downloading the entire file).
We discussed this as a potential issue and the work around being to follow the instructions in the error message and install the items in the Android SDK manually.
I'm going to close this issue as it's not something on our roadmap currently. There are some other plans to manage SDK downloads which should eventually obsolete this. For now the workaround is to install the item in the Android SDK manager manually as per the error message.
Unfortunately @Jon.Dick those instructions don't appear to work. They worked for the older components but they don't work with the current ones. Yes, there is a work around but I would suggest the document be updated highlighting the new location and how to construct the folder..
Windows works with no issues... the problem is with the Mac, they both go through the same proxy... Looks to me like the Mac isn't even attempting to connect through the proxy when downloading the dependencies..
With Xamarin.Build.Download and the Android Support libs that depend on it, there shouldn't be any special requirements for the workaround other than to make sure you've installed the correct item in the Android SDK Manager.
The one caveat with this is you need to make sure you're using the same Android SDK Manager for the Android SDK that Xamarin.Android is building with.
If this is not working, there may be a bug with Xamarin.Build.Download. Could you check the contents of your `$ANDROID_HOME/extras/android/m2repository/` ? you should for instance see:
If you have the latest version of the "Extras -> Android Support Repository" installed in the Android SDK Manager.
I can confirm I have all the expected files in the appcompat-v7 folder..
My work around was:
When I connected my Mac to a hotspot (bypass proxy) and started a build a folder got created in ~/Library/Caches/XamarinBuildDownload called androidsupport-25.1.1 (25.3.1 wasn't available at the time) Needless to say the build succeeded. When I moved back behind the proxy, the build still succeeded.
When I renamed the folder and tried the build again it fails with the same error as before..
I copied this folder to our build server to and it successfully built..
So, something is not quite right...
Right, so it's not finding your local SDK manager copy.
Can you attach some diagnostic output msbuild logs from it failing when you're behind the proxy?
Newer versions of android support use a different download mechanism (or no download mechanism), so this issue is no longer relevant.