Bug 2207 - When build the APIDemo application, errors appears.
Summary: When build the APIDemo application, errors appears.
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.0
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-11-28 01:56 UTC by Jatin
Modified: 2011-12-15 06:08 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Screenshot for the bug. (420.00 KB, image/jpeg)
2011-11-28 01:56 UTC, Jatin

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:

Description Jatin 2011-11-28 01:56:59 UTC
Created attachment 951 [details]
Screenshot for the bug.

Step To Reproduce:

1.Launch the MonoDevelop.
2.Click on "Start a New Solution" link.
3.Choose C# > Mono for Android in left hand panel.
4.Select Mono for Android Application from the center panel.
5.Open the solution for the sample application APIDemo.
6.Build thhe solution.
7.Observe that error appears. 

Actual result:

When build the application 'APIDemo' error appears. Refer to the attached screenshot.

Expected result:

Error should not appear and the application shoult build successfully.


MonoDevelop 2.8.2 with Addin
Mono for Android 4.0
Windows 7
Mac 10.6 (Snow Leopard)
Mac 10.7 (Lion)
Comment 1 narayanp 2011-11-28 05:31:54 UTC
This issue exists with SnowLeopard also on all the API's.
Comment 2 Jonathan Pryor 2011-11-28 14:33:17 UTC
You've set your TargetFrameworkVersion to something < Android 2.2, and the Sensor* types require Android 2.2 or later.

This is really a bug in the sample, and the sample should use some #if-fu to prevent building types that don't exist in the TargetFrameworkVersion.
Comment 3 Jonathan Pobst 2011-11-28 18:11:30 UTC
This is fixed in the release-2.0 branch on monodroid-samples.  We will push it to master when the release goes out:

Comment 4 Jatin 2011-12-15 06:08:28 UTC
This issue is fixed on:

MonoDevelop 2.8.5
Mono for Android 4.0.1
Mono 2.10.7 (Beta).

Hence, closing this issue.