Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
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.
*** This bug has been marked as a duplicate of bug 12938 ***