Bug 40178 - Cannot add certain google play packages to Android template
Summary: Cannot add certain google play packages to Android template
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: NuGet ()
Version: 6.0.0 (C7)
Hardware: PC Mac OS
: --- normal
Target Milestone: (C7)
Assignee: Matt Ward
URL:
Depends on:
Blocks:
 
Reported: 2016-04-06 19:21 UTC by Kyle White
Modified: 2016-05-02 21:33 UTC (History)
0 users

Tags: NotRegression
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:
VERIFIED FIXED

Description Kyle White 2016-04-06 19:21:25 UTC
Adding *certain* GPS packages via the "Add GPS dialog" fails to add the package with this error: 

Updating 'Xamarin.Android.Support.v4 23.1.1.0' to 'Xamarin.Android.Support.v4 23.1.1.1' failed. Unable to find a version of 'Xamarin.Android.Support.v7.AppCompat' that is compatible with 'Xamarin.Android.Support.v4 23.1.1.1'.

Steps to reproduce:
Create a new Android App
Open the "Add Google Play Services" dialog
Check the "Ads" package 
Hit Add

Actual result:
Package console gives the above error

Expected:
Package is added

screencast: http://screencast.com/t/DMoKIxHXvkb6

Ide log:
https://gist.github.com/kdubau/d0a4657b679dc83845ea42060e675cb0
Comment 1 Matt Ward 2016-04-07 12:21:24 UTC
A quick fix would be to update the Android project templates to install a version of Xamarin.Android.Support.v7.AppCompat that is compatible with the Ads NuGet package. So any version >= 23.1.1.1. 

The Android project template itself just specifies the single NuGet package:

   id="Xamarin.Android.Support.v7.AppCompat" version="23.1.1.0"

This depends on Xamarin.Android.Support.v4 (=23.1.1.0)

Xamarin.GooglePlayServices.Ads 29.0.0.1 depends on:
  Xamarin.GooglePlayServices.Basement (=29.0.0.1) which depends on:
    Xamarin.Android.Support.v4 (>= 23.1.1.1) which has no dependencies.

Interestingly Visual Studio 2013 and 2015 do not have the same problem. They correctly determine that the AppCompat NuGet package needs to be updated even though it not directly being updated. So Xamarin Studio must be doing something different when resolving the NuGet packages.
Comment 2 Matt Ward 2016-04-08 08:06:18 UTC
This is not a regression. This bug has been in the NuGet addin since the beginning.
Comment 3 xamarin-release-manager 2016-04-08 10:06:41 UTC
Fixed in version 6.1.0.533 (master)

Author: Matt Ward
Commit: 37daa79c169ca64f578f9ae2241facf6c25fc009 (mono/monodevelop)
Comment 4 xamarin-release-manager 2016-04-08 12:13:40 UTC
Fixed in version 6.0.0.4968 (cycle7)

Author: Matt Ward
Commit: c8cc426c7e9bd3be2a8e3c0b9890686929b4df6c (mono/monodevelop)
Comment 7 xamarin-release-manager 2016-04-13 16:20:26 UTC
Fixed in version 6.0.0.5016 (cycle7-hdpi-win32)

Author: Matt Ward
Commit: c8cc426c7e9bd3be2a8e3c0b9890686929b4df6c (mono/monodevelop)
Comment 8 xamarin-release-manager 2016-05-02 21:33:55 UTC
Fixed in version 6.0.0.5118 (cycle7-android-n)

Author: Matt Ward
Commit: c8cc426c7e9bd3be2a8e3c0b9890686929b4df6c (mono/monodevelop)