Bug 12402 - 'Android Unit Test project' template gives build error.
Summary: 'Android Unit Test project' template gives build error.
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.6.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2013-05-27 06:24 UTC by Prashant manu
Modified: 2014-03-27 06:39 UTC (History)
2 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 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 Prashant manu 2013-05-27 06:24:19 UTC
Steps to reproduce:
1. Open X.S.
2. Create a Android Unit Test project.
3. Debug or run the application.

Actual result:
Android Unit Test template giving 2 build errors.

Build output: https://gist.github.com/atin360/2089eb35828905a68d3e

Expected result:
Android Unit Test template should debug or run successfully

Environment details:
All mac
XS 4.0.8(build 2)- 0a09117dec1aed78c735ac46f7a50ae7d12f7a7a
MFA 4.6.07004

Regression status: NOT REGRESSION application gives build error with stable MFA 4.6.06000 and XS 4.0.8(build 2).
Comment 1 Jonathan Pryor 2013-06-26 18:43:39 UTC
This line appears to be the cause:

> Considered target framework dir /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mono/2.1, assembly named 'Xamarin.Android.NUnitLite' not found.

i.e. this file does not exist:


Which brings us to the _real_ reason:

> MFA 4.6.07004

Xamarin.Android 4.6.x does not include this assembly. It's only present in Xamarin.Android 4.7.5 and later.
Comment 2 Tajinder Singh 2014-03-27 06:39:35 UTC
I have checked this issue with the following builds:

All Mac
XS 4.2.4(build 32)
X.Android 4.12.3-3

Now user is able to build Android unit project successfully.Hence closing this issue.