Bug 42653 - Unexpected error on complie
Summary: Unexpected error on complie
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2016-07-19 13:54 UTC by chance8007
Modified: 2016-07-19 15:40 UTC (History)
1 user (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 chance8007 2016-07-19 13:54:32 UTC
When I try to build an Android project I get the following error
System.IO.DirectoryNotFoundException: Could not find a part of the path "FILE_SHARE_PATH\Documents\Visual Studio 2013\Projects\APP_local\App_local\App_Local_local.Droid\obj\Debug\__library_projects__\Xamarin.Controls.LoginScreen.Android\library_project_imports\res\drawable\edittext_textcolor_selector.xml"	App_local.Droid
Comment 1 Jonathan Pryor 2016-07-19 14:06:27 UTC
Depending on FILE_SHARE_PATH, you might be hitting the max path length on Windows (260 characters, which includes the driver letter and colon, and *maybe* the null terminator?).

If that's a literal error message and not edited by you...where is FILE_SHARE_PATH coming from?

Regardless, I would suggest that you try moving your project directory location closer to the root of the drive, e.g. instead of `FILE_SHARE_PATH\Documents\Visual Studio 2013\Projects`, use `C:\Projects`.
Comment 2 chance8007 2016-07-19 15:40:13 UTC
Thanks I will try that and let you know