Bug 44534 - failure to build Android projects
Summary: failure to build Android projects
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 6.1.2 (C7SR1)
Hardware: Macintosh Mac OS
: --- critical
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2016-09-20 18:29 UTC by Dan Vanderboom
Modified: 2017-06-28 22:20 UTC (History)
3 users (show)

Tags: bb
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 Dan Vanderboom 2016-09-20 18:29:35 UTC
# Steps to reproduce
Using the latest version of Xamarin.Android ( and either Xamarin Studio or Visual Studio (with the latest versions of each), try to build an Android app project.

# Expected behavior
Successful build of Android Xamarin projects.

# Actual behavior
/Users/Dan/Source/ProductName/Droid/SomeLibrary.Droid/SomeLibrary.Droid.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets (_ResolveLibraryProjectImports target) ->

	:  monodroiderror XA0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.FileNotFoundException: Could not load assembly 'ProductName.exe, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?

# Supplemental info (logs, images, videos)

# Test environment (full version information)
=== Xamarin Studio Business ===

Version 6.0.2 (build 73)
Installation UUID: 448d2f5f-8b1d-4ba0-915d-8e07e72b5eb5
	Mono 4.4.2 (mono-4.4.0-branch-c7sr1/f72fe45) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404020011

=== Xamarin.Profiler ===

Not Installed

=== Xamarin.Android ===

Version: (Xamarin Business)
Android SDK: /Users/Dan/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
		5.1   (API level 22)
		6.0   (API level 23)

SDK Tools Version: 25.1.6
SDK Platform Tools Version: 24.0.0
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

Android Designer EPL code available here:

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 8.0 (11246)
Build 8A218a

=== Xamarin.Mac ===

Version: (Xamarin Business)

=== Xamarin.iOS ===

Version: (Xamarin Business)
Hash: f37444a
Branch: cycle7-sr1
Build date: 2016-07-28 12:17:02-0400

=== Build Information ===

Release ID: 600020073
Git revision: a6f7a24a9723a2d4f5d33c176615b0d44703ab5b
Build date: 2016-07-26 13:36:15-04
Xamarin addins: f5acb37866a0141bc5ddbe95118f18dae4014568
Build lane: monodevelop-lion-cycle7-sr1

=== Operating System ===

Mac OS X 10.11.6
Darwin DanMacBookPro.local 15.6.0 Darwin Kernel Version 15.6.0
    Mon Aug 29 20:21:34 PDT 2016
    root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2016-09-21 19:47:40 UTC
Thanks for the report!  To help the Xamarin team address this issue as efficiently as possible, please provide additional information, such as:

- Do you see the same problem if you (temporarily) update to the new Xamarin.Android 7.0 version [1]?

[1] https://releases.xamarin.com/stable-release-cycle-8-w-ios-10-and-xcode8-support/

- Attach the full log context of the error messages you are seeing.  This looks like a build time error, so please attach back the complete diagnostic MSBuild output [2].

[2] http://developer.xamarin.com/guides/android/troubleshooting/troubleshooting/#Diagnostic_MSBuild_Output

(In particular, this error the error message reported in Comment 0 is often itself not the "primary" symptom.  It most often means that something earlier in the "ProductName.exe" build process failed (or sometimes that that project was not set to build in the current solution configuration.)  The diagnostic build output should in theory contain all of the relevant error messages.)

- Do you get the same problem on a new template Android App or maybe on a new template Xamarin.Forms app?

- If not, then if possible, please attach a small, self-contained test case that reproduces the bug with as little code as possible.

See https://developer.xamarin.com/guides/cross-platform/troubleshooting/questions/howto-file-bug/ for additional details on what to include.  Thanks in advance!
Comment 3 Al Clark [MSFT] 2017-06-28 22:20:25 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!