Bug 17873 - Getting build errors if user change 'Target Android Version' and 'Compile using Android version' from default setting
Summary: Getting build errors if user change 'Target Android Version' and 'Compile usi...
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: Samples ()
Version: 4.12.0
Hardware: PC All
: Normal normal
Target Milestone: ---
Assignee: Peter Collins
URL:
Depends on:
Blocks:
 
Reported: 2014-02-19 09:14 UTC by narayanp
Modified: 2014-02-19 13:35 UTC (History)
0 users

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 INVALID

Description narayanp 2014-02-19 09:14:46 UTC
Steps to reproduce:
1. Open X.S/VS
2. Open APIDemo project from android sample.
3. Build the project.
4. It builds successfully.
5. Now change 'Target Android Version' and 'Compile using Android version'.
6. Build the project again.

Actual Result: It is giving build errors as showing in gist: https://gist.github.com/saurabh360/685081862c71d1b8a4b7

Expected Result: sample app should build successfully.

Environment details:
All Windows and Mac
X.S 4.2.4(build 17)
Mono 3.2.7
VS 2013/2012
X.Android 4.12.0-25

Regression Status:
NOT A REGRESSION: Same behavior happening with X.Android 4.10.1-68 and 73
Comment 1 Peter Collins 2014-02-19 13:35:54 UTC
Unfortunately, lowering the Target Android Version is not an applicable test case for Api Demo. The way the sample is designed it needs to be built against a high target framework, but is still able to run on lower API level devices.