Bug 31497 - Multiple downloads of the same package
Summary: Multiple downloads of the same package
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 5.1
Hardware: PC Windows
: High normal
Target Milestone: 6.0 (C6)
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2015-06-30 09:04 UTC by Mikhail Melnik
Modified: 2015-11-13 16:19 UTC (History)
3 users (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 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.

Related Links:
Status:
RESOLVED FIXED

Description Mikhail Melnik 2015-06-30 09:04:24 UTC
A few days ago I've realized all of the packages I'm using got an update. I have started update process but run into an issue that Xamarin Studio is downloading the same package multiple times wasting my bandwidth, time (download speed is pretty slow this place) and space on SSD.

Problem became even worse with splitting up of single Google Play Services package to 21 smaller packages. Maybe it helps to make resulting build smaller but multiplies download/storage volume at the same degree.

Here is list of my components:

googleplayservices-22.0.0.0
xamandroidsupportv4-18-21.0.3.0
xamandroidsupportv7appcompat-21.0.3.0
xamandroidsupportv7cardview-21.0.3.0

And output of build task:

Downloading https://dl-ssl.google.com/android/repository/android_m2repository_r15.zip into \AppData\Local\Xamarin\Android.Support.v4\22.2.0
Downloading https://dl-ssl.google.com/android/repository/android_m2repository_r15.zip into \AppData\Local\Xamarin\Android.Support.v7.AppCompat\22.2.0
Downloading https://dl-ssl.google.com/android/repository/android_m2repository_r15.zip into \AppData\Local\Xamarin\Android.Support.v7.CardView\22.2.0
Downloading https://dl-ssl.google.com/android/repository/android_m2repository_r15.zip into \AppData\Local\Xamarin\Android.Support.v7.MediaRouter\22.2.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Ads\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Analytics\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.AppIndexing\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.AppInvite\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.AppState\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Base\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Cast\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Drive\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Fitness\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Games\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Gcm\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Identity\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Location\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Maps\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Nearby\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Panorama\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Plus\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.SafetyNet\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Wallet\25.0.0
Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r19.zip into \AppData\Local\Xamarin\GooglePlayServices.Wearable\25.0.0

So after the update \AppData\Local\Xamarin folder size became 2.6GB of duplicates and I lost 1.2GB of my internet allowance.

I was advised to file a bug: http://forums.xamarin.com/discussion/comment/136078/#Comment_136078

My configuration:

=== Xamarin Studio ===

Version 5.9.3 (build 1)
Installation UUID: 2ce9ad5e-1900-473f-a546-f3944667d60e
Runtime:
	Microsoft .NET 4.0.30319.34209
	GTK+ 2.24.22 (MS-Windows theme)
	GTK# 2.12.26

=== Xamarin.Android ===

Version: 5.1.3 (Indie Edition)
Android SDK: D:\Development\Android\bundle\sdk
	Supported Android versions:
		4.0.3 (API level 15)
		4.2   (API level 17)
		5.0   (API level 21)
Java SDK: C:\Program Files\Java\jdk1.7.0_51
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

=== Xamarin Android Player ===

Not Installed

=== Build Information ===

Release ID: 509030001
Git revision: 5a524e1726ed103fdd4fe37e0356f2b35466ce9d
Build date: 2015-06-02 16:19:11-04
Xamarin addins: 51957cfbd06be911b212671ad05c2c6221ac90f9

=== Operating System ===

Windows 6.2.9200.0 (64-bit)
Comment 1 Sadik Ali 2015-07-01 07:49:11 UTC
I have checked this issue and able to reproduce the reported behavior given in the bug description. XS downloading same package multiple times. 

Screencast: http://www.screencast.com/t/KXsLuAHBy7t
Ide Logs: https://gist.github.com/Arpit360/2d65539c3bb2886f4320
Build output for download same package: https://gist.github.com/Arpit360/9c0704f3499bd5785d82

Environment Info:

=== Xamarin Studio ===

Version 5.9.4 (build 5)
Installation UUID: 2901a7c0-e8f1-4d78-b584-9679ebd75575
Runtime:
	Microsoft .NET 4.0.30319.34011
	GTK+ 2.24.22 (MS-Windows theme)
	GTK# 2.12.26

=== Xamarin.Android ===

Version: 5.1.99 (Enterprise Edition)
Android SDK: E:\SDK_NDKFOLDER\android-sdk
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: C:\Program Files\Java\jdk1.7.0_72
java version "1.7.0_72"
Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)

=== Xamarin Android Player ===

Version: 0.3.7.2
Location: C:\Program Files\Xamarin Android Player\DeviceManager.exe

=== Build Information ===

Release ID: 509040005
Git revision: 8010a90f6e246b32364e3fb46ef2c9d1be9c9a2b
Build date: 2015-06-08 17:16:25-04
Xamarin addins: 7e93e9c3503f28770f23ce1b7eafd829919f18e8

=== Operating System ===

Windows 6.2.9200.0 (64-bit)
Comment 2 dean.ellis 2015-08-03 10:22:21 UTC
Fixed in monodroid/master/e8737f15
Comment 3 Mikhail Melnik 2015-10-05 05:10:58 UTC
Is it already in stable?

Here is what I still have in logs on clean system.

Target _BuildAdditionalResourcesCache:

      Downloading https://dl-ssl.google.com/android/repository/android_m2repository_r20.zip into \AppData\Local\Xamarin\Android.Support.Design\23.0.1

      Downloading https://dl-ssl.google.com/android/repository/android_m2repository_r20.zip into \AppData\Local\Xamarin\Android.Support.v7.CardView\23.0.1

      Downloading https://dl-ssl.google.com/android/repository/android_m2repository_r20.zip into \AppData\Local\Xamarin\Android.Support.v7.RecyclerView\23.0.1

      Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r21.zip into \AppData\Local\Xamarin\GooglePlayServices.Analytics\26.0.0

      Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r21.zip into \AppData\Local\Xamarin\GooglePlayServices.Base\26.0.0

      Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r21.zip into \AppData\Local\Xamarin\GooglePlayServices.Gcm\26.0.0

      Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r21.zip into \AppData\Local\Xamarin\GooglePlayServices.Location\26.0.0

      Downloading https://dl-ssl.google.com/android/repository/google_m2repository_r21.zip into \AppData\Local\Xamarin\GooglePlayServices.Maps\26.0.0


So it looks like a switch from component to individual packages allowed to reduce the number of downloads but didn't eliminate excessive ones.
Comment 4 dean.ellis 2015-10-05 05:15:34 UTC
Its not in stable yet, only in alpha. But there are known issues with alpha so I would not recommend switching at this time.
Comment 5 Mikhail Melnik 2015-10-05 05:59:22 UTC
Ah, ok, will be checking release notes. Thanks!