Bug 49116 - Updating Xamarin.Android.Support packages errors: You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0'
Summary: Updating Xamarin.Android.Support packages errors: You are trying to install t...
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 6.1.2 (C7SR1)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2016-12-06 17:32 UTC by Justin Toth
Modified: 2016-12-06 21:00 UTC (History)
2 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 Justin Toth 2016-12-06 17:32:38 UTC
When trying to update the Xamarin.Android.Support packages to 24.2.1 through Xamarin Studio, it gives the error:

Attempting to gather dependency information for multiple packages with respect to project 'com.rpr.mobile.droid', targeting 'MonoAndroid,Version=v6.0'
Attempting to resolve dependencies for multiple packages.
Resolving actions install multiple packages
Removed package 'Xamarin.GooglePlayServices.Location 29.0.0.2' from 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
Removed reference 'Xamarin.GooglePlayServices.Location' from project 'com.rpr.mobile.droid'.
Successfully uninstalled 'Xamarin.GooglePlayServices.Location 29.0.0.2' from com.rpr.mobile.droid
Removed package 'Xamarin.GooglePlayServices.Maps 29.0.0.2' from 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
Removed reference 'Xamarin.GooglePlayServices.Maps' from project 'com.rpr.mobile.droid'.
Successfully uninstalled 'Xamarin.GooglePlayServices.Maps 29.0.0.2' from com.rpr.mobile.droid
Removed package 'Xamarin.GooglePlayServices.Base 29.0.0.2' from 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
Removed reference 'Xamarin.GooglePlayServices.Base' from project 'com.rpr.mobile.droid'.
Successfully uninstalled 'Xamarin.GooglePlayServices.Base 29.0.0.2' from com.rpr.mobile.droid
Removed package 'Xamarin.GooglePlayServices.Analytics 29.0.0.2' from 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
Removed reference 'Xamarin.GooglePlayServices.Analytics' from project 'com.rpr.mobile.droid'.
Successfully uninstalled 'Xamarin.GooglePlayServices.Analytics 29.0.0.2' from com.rpr.mobile.droid
Removed package 'Xamarin.GooglePlayServices.Basement 29.0.0.2' from 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
Removed reference 'Xamarin.GooglePlayServices.Basement' from project 'com.rpr.mobile.droid'.
Successfully uninstalled 'Xamarin.GooglePlayServices.Basement 29.0.0.2' from com.rpr.mobile.droid
Removed package 'Xamarin.Android.Support.v7.AppCompat 23.4.0.1' from 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
Removed reference 'Xamarin.Android.Support.v7.AppCompat' from project 'com.rpr.mobile.droid'.
Successfully uninstalled 'Xamarin.Android.Support.v7.AppCompat 23.4.0.1' from com.rpr.mobile.droid
Removed package 'Xamarin.Android.Support.Animated.Vector.Drawable 23.4.0.1' from 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
Removed reference 'Xamarin.Android.Support.Animated.Vector.Drawable' from project 'com.rpr.mobile.droid'.
Successfully uninstalled 'Xamarin.Android.Support.Animated.Vector.Drawable 23.4.0.1' from com.rpr.mobile.droid
Removed package 'Xamarin.Android.Support.Vector.Drawable 23.4.0.1' from 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
Removed reference 'Xamarin.Android.Support.Vector.Drawable' from project 'com.rpr.mobile.droid'.
Successfully uninstalled 'Xamarin.Android.Support.Vector.Drawable 23.4.0.1' from com.rpr.mobile.droid
Removed package 'Xamarin.Android.Support.v13 23.4.0.1' from 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
Removed reference 'Xamarin.Android.Support.v13' from project 'com.rpr.mobile.droid'.
Successfully uninstalled 'Xamarin.Android.Support.v13 23.4.0.1' from com.rpr.mobile.droid
Removed package 'Xamarin.Android.Support.v4 23.4.0.1' from 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
Removed reference 'Xamarin.Android.Support.v4' from project 'com.rpr.mobile.droid'.
Successfully uninstalled 'Xamarin.Android.Support.v4 23.4.0.1' from com.rpr.mobile.droid
For adding package 'Xamarin.Android.Support.Compat.24.2.1' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
Install failed. Rolling back...
Package 'Xamarin.Android.Support.Compat 24.2.1' does not exist in project 'com.rpr.mobile.droid'
For adding package 'Xamarin.Android.Support.v4 23.4.0.1' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
For adding package 'Xamarin.Android.Support.v4 23.4.0.1' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
Package 'Xamarin.Android.Support.v4 23.4.0.1' already exists in folder '/Users/justintoth/Documents/rpr-mobile/packages'
Added reference 'Xamarin.Android.Support.v4' to project 'com.rpr.mobile.droid'.
Added package 'Xamarin.Android.Support.v4 23.4.0.1' to 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
For adding package 'Xamarin.Android.Support.v13 23.4.0.1' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
For adding package 'Xamarin.Android.Support.v13 23.4.0.1' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
Package 'Xamarin.Android.Support.v13 23.4.0.1' already exists in folder '/Users/justintoth/Documents/rpr-mobile/packages'
Added reference 'Xamarin.Android.Support.v13' to project 'com.rpr.mobile.droid'.
Added package 'Xamarin.Android.Support.v13 23.4.0.1' to 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
For adding package 'Xamarin.Android.Support.Vector.Drawable 23.4.0.1' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
For adding package 'Xamarin.Android.Support.Vector.Drawable 23.4.0.1' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
Package 'Xamarin.Android.Support.Vector.Drawable 23.4.0.1' already exists in folder '/Users/justintoth/Documents/rpr-mobile/packages'
Added reference 'Xamarin.Android.Support.Vector.Drawable' to project 'com.rpr.mobile.droid'.
Added package 'Xamarin.Android.Support.Vector.Drawable 23.4.0.1' to 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
For adding package 'Xamarin.Android.Support.Animated.Vector.Drawable 23.4.0.1' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
For adding package 'Xamarin.Android.Support.Animated.Vector.Drawable 23.4.0.1' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
Package 'Xamarin.Android.Support.Animated.Vector.Drawable 23.4.0.1' already exists in folder '/Users/justintoth/Documents/rpr-mobile/packages'
Added reference 'Xamarin.Android.Support.Animated.Vector.Drawable' to project 'com.rpr.mobile.droid'.
Added package 'Xamarin.Android.Support.Animated.Vector.Drawable 23.4.0.1' to 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
For adding package 'Xamarin.Android.Support.v7.AppCompat 23.4.0.1' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
For adding package 'Xamarin.Android.Support.v7.AppCompat 23.4.0.1' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
Package 'Xamarin.Android.Support.v7.AppCompat 23.4.0.1' already exists in folder '/Users/justintoth/Documents/rpr-mobile/packages'
Added reference 'Xamarin.Android.Support.v7.AppCompat' to project 'com.rpr.mobile.droid'.
Added package 'Xamarin.Android.Support.v7.AppCompat 23.4.0.1' to 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
For adding package 'Xamarin.GooglePlayServices.Basement 29.0.0.2' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
For adding package 'Xamarin.GooglePlayServices.Basement 29.0.0.2' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
Package 'Xamarin.GooglePlayServices.Basement 29.0.0.2' already exists in folder '/Users/justintoth/Documents/rpr-mobile/packages'
Added reference 'Xamarin.GooglePlayServices.Basement' to project 'com.rpr.mobile.droid'.
Added package 'Xamarin.GooglePlayServices.Basement 29.0.0.2' to 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
For adding package 'Xamarin.GooglePlayServices.Analytics 29.0.0.2' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
For adding package 'Xamarin.GooglePlayServices.Analytics 29.0.0.2' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
Package 'Xamarin.GooglePlayServices.Analytics 29.0.0.2' already exists in folder '/Users/justintoth/Documents/rpr-mobile/packages'
Added reference 'Xamarin.GooglePlayServices.Analytics' to project 'com.rpr.mobile.droid'.
Added package 'Xamarin.GooglePlayServices.Analytics 29.0.0.2' to 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
For adding package 'Xamarin.GooglePlayServices.Base 29.0.0.2' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
For adding package 'Xamarin.GooglePlayServices.Base 29.0.0.2' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
Package 'Xamarin.GooglePlayServices.Base 29.0.0.2' already exists in folder '/Users/justintoth/Documents/rpr-mobile/packages'
Added reference 'Xamarin.GooglePlayServices.Base' to project 'com.rpr.mobile.droid'.
Added package 'Xamarin.GooglePlayServices.Base 29.0.0.2' to 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
For adding package 'Xamarin.GooglePlayServices.Maps 29.0.0.2' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
For adding package 'Xamarin.GooglePlayServices.Maps 29.0.0.2' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
Package 'Xamarin.GooglePlayServices.Maps 29.0.0.2' already exists in folder '/Users/justintoth/Documents/rpr-mobile/packages'
Added reference 'Xamarin.GooglePlayServices.Maps' to project 'com.rpr.mobile.droid'.
Added package 'Xamarin.GooglePlayServices.Maps 29.0.0.2' to 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
For adding package 'Xamarin.GooglePlayServices.Location 29.0.0.2' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
For adding package 'Xamarin.GooglePlayServices.Location 29.0.0.2' to project 'com.rpr.mobile.droid' that targets 'monoandroid60'.
Package 'Xamarin.GooglePlayServices.Location 29.0.0.2' already exists in folder '/Users/justintoth/Documents/rpr-mobile/packages'
Added reference 'Xamarin.GooglePlayServices.Location' to project 'com.rpr.mobile.droid'.
Added package 'Xamarin.GooglePlayServices.Location 29.0.0.2' to 'packages.config'
Added file 'packages.config' to project 'com.rpr.mobile.droid'.
Package 'Xamarin.Android.Support.Compat 24.2.1' does not exist in folder '/Users/justintoth/Documents/rpr-mobile/packages'
Could not install package 'Xamarin.Android.Support.Compat 24.2.1'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Please advise how to fix, I'm running with the latest stable builds of Xamarin Studio, Xamarin Android, and the Android SDK:

Xamarin Studio Community
Version 6.1.2 (build 44)
Installation UUID: faed7555-6444-4444-ad18-0b74c3832be3
Runtime:
	Mono 4.6.2 (mono-4.6.0-branch/08fd525) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406020007

NuGet
Version: 3.4.3.0

Xamarin.Profiler
Not Installed

Xamarin.Android
Version: 7.0.2.37 (Xamarin Studio Community)
Android SDK: /android/sdk
	Supported Android versions:
		5.0 (API level 21)
		5.1 (API level 22)
		6.0 (API level 23)
		7.0 (API level 24)

SDK Tools Version: 25.2.3
SDK Platform Tools Version: 25.0.1
SDK Build Tools Version: 24.0.3

Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Xamarin Android Player
Not Installed

Apple Developer Tools
Xcode 8.1 (11544)
Build 8B62

Xamarin.iOS
Version: 10.2.1.5 (Xamarin Studio Community)
Hash: 44931ae
Branch: xcode8.1
Build date: 2016-11-01 20:52:28-0400

Xamarin.Mac
Not Installed

Build Information
Release ID: 601020044
Git revision: 0ccfcd52b95305ebd5b7eca0d88c1017035910ae
Build date: 2016-10-28 15:12:43-04
Xamarin addins: a39a869d8a78d87bdc6775f696c13a4cc9024501
Build lane: monodevelop-lion-cycle8

Operating System
Mac OS X 10.12.1
Darwin Justins-MBP 16.1.0 Darwin Kernel Version 16.1.0
    Thu Oct 13 21:26:57 PDT 2016
    root:xnu-3789.21.3~60/RELEASE_X86_64 x86_64
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2016-12-06 19:48:25 UTC
## Non-engineering team initial quick review

I believe you will need to update the Xamarin.Android project to use a "Project Options > General > Target framework" of "Android 7.0 (Nougat)" or higher since the latest Xamarin.Android.Support packages were compiled against that version.

In case it's of interest, there is an enhancement request up for the NuGet package manager to see about improving the error message in this scenario:
https://github.com/NuGet/Home/issues/4051 




## Side note

In case it's helpful, StackOverflow will often be able to provide answers more quickly for "what does this error message mean?" questions like this.  (See also [1].)


[1] https://developer.xamarin.com/guides/cross-platform/troubleshooting/support-options/
Comment 2 Justin Toth 2016-12-06 21:00:20 UTC
You're right! I had changed the target framework under Android Application but not under General, doh...