Bug 8564 - The application API Demo does not build successfully with target framework set as Android 4.2 JellyBean
Summary: The application API Demo does not build successfully with target framework se...
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Samples ()
Version: 4.4.x
Hardware: PC Windows
: High normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-11-23 06:46 UTC by Jatin
Modified: 2013-08-29 12:13 UTC (History)
7 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:
VERIFIED FIXED

Description Jatin 2012-11-23 06:46:29 UTC
Steps to reproduce:
1. Open VS 2010/VS 2012
2. Open the application APIDemo
3. Set the target framework of the application as Android 4.2 JellyBean
4. Build the application.
5. Observe that 1 build error appears: 

Actual result: The aplication APIDemo does not build successfully with the target framework as Android 4.2 JellyBean. as it gives one error on build: "Error1:'EGLConfig' is an ambiguous reference between 'Javax.Microedition.Khronos.Egl.EGLConfig' and 'Android.Opengl.EGLConfig'  C:\Users\jatinvm\Desktop\4.2Testing\monodroid-samples-master\ApiDemo\Graphics\CubeRenderer.cs	89	43	ApiDemo"

Below is the build output for the same:
https://gist.github.com/4135222

Expected result: The application should build and run successfully.

Environment information:
Windows 7 and 8
VS 2012/VS 2010
MFA 4.4.27.70430532 - 432af4490489b682f622f391539e628052784024

Regression status: Not a regression, as this feature was not available with the stable version of MD and MFA.

Note: The application builds successfully with the target framework as Android 4.1 and lower, the issuen exists only with the target framework as Android 4.2 JellyBean.
Comment 1 Atsushi Eno 2012-11-23 14:46:50 UTC
Fixed in git master.
Comment 2 Saurabh 2012-12-04 10:41:32 UTC
We have verified this issue with following builds:

mono-android-4.4.40.242769865 - e785fc9cbf20440d09988327bdaf614804d55a21
VS 2010/2012

The issue still exists, as the application does not build with the target framework set as 4.2 Jellybean.

Note: The application build successfully when build on MD 3.0.6 beta using the same version of MFA.

Hence, reopening this issue w.r.t to VS 2010/VS 2012
Comment 3 PJ 2012-12-04 18:34:25 UTC
Re-opening based on comment 2 "Hence, reopening this issue w.r.t to VS 2010/VS 2012"
Comment 4 Peter Collins 2013-08-27 19:56:53 UTC
Fixed in https://github.com/xamarin/monodroid-samples/commit/b019a60c1bd56261af6324075b0492a9b388ca4b

ApiDemo now has a TargetFramework of v4.2.
Comment 5 Mohit Kheterpal 2013-08-29 12:13:27 UTC
Today we have checked this issue on following builds :

VS 2010 / 2012
X.Android 4.8.02054

App info : monodroid-samples-60ecd1df4a9964cc33a891ee73a0eeffb7fb6daf

Now we are able to build and run the application on device and emulator successfully  with target framework set as Android 4.2 JellyBean.

Hence closing this issue. Changing its status to verified