Bug 2362 - Cannot deploy shared runtime if target framework is higher than device
Summary: Cannot deploy shared runtime if target framework is higher than device
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-12-06 10:56 UTC by Jonathan Pobst
Modified: 2016-08-03 15:22 UTC (History)
4 users (show)

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 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:

Description Jonathan Pobst 2011-12-06 10:56:18 UTC
Set up a project with:

- Target Framework: Android 4.0
- Minimum Android version: Android 2.2
- Use Shared Framework: True

Then try to deploy to an Android 2.2 device.  It will try to install the 4.0 platform apk, which will fail.

It should instead deploy the highest one supported by the device (that is still valid for the minimum android version).
Comment 1 Jonathan Pobst 2012-02-08 17:11:37 UTC
This is unfortunately by design.  :/

For 4.2, it will check for this condition and give a friendly error instead of letting you sit through the whole install and then erroring.