Bug 13010 - License error when building with android-support-v4.jar
Summary: License error when building with android-support-v4.jar
Status: RESOLVED DUPLICATE of bug 12938
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.6.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2013-07-02 09:59 UTC by Grant Macklem
Modified: 2013-07-11 15:34 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 Grant Macklem 2013-07-02 09:59:35 UTC
We recently added a dependency on android-support-v4.jar to one of the projects in our solution.  It had been building fine until yesterday.  This may or may not be related to the latest Xamarin update pushed recently.  I have Xamarin Studio 4.0.9 with Xamarin.Android 4.6.8, but am building with Visual Studio 2012.  We receive errors when building:
1x (for a test project): Unable to determine license edition.
3x (once for the test project and twice for the actual project): Unexpected error - Please file a bug report at http://bugzilla.xamarin.com.  Reason: System.UnauthorizedAccessException: Access to the path "<solution_dir>\obj\Debug\__library_projects__\<project_name>\library_project_imports\SupportLib\android-support-v4.jar" is denied.

The only workaround we've discovered for this problem is to open C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets.  Search for "_BuildDependencies".  Comment out (i.e. surround with <!--   -->   ) the entre MSBuild part of that _BuildDependencies task, then save the file.  Finally restart Visual Studio.
Comment 1 Jonathan Pryor 2013-07-11 15:34:15 UTC

*** This bug has been marked as a duplicate of bug 12938 ***