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.
## When trying to build the Android sample for the LoginScreen component, build fails with error:
> Error 1 Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: Could not find a part of the path "C:\Users\apple\Documents\XamarinSupportProjects\AndroidApp\Components\loginscreen-1.4.1\samples\LoginScreen.Android.Sample\obj\Debug\__library_projects__\Xamarin.Controls.LoginScreen.Android\library_project_imports\res\drawable-xhdpi\button_login_pressed.9.png" LoginScreen.Android.Sample
## Steps to reproduce:
1. Open the Android sample app in Visual Studio for the LoginScreen component from our component store.
2. Build the project,
Expected result: App will build.
Actual result: build fails with error above.
## Note: I was able to get around this by creating a new Android app project and just copying in the Main.axml file, the testCredentialProvider.cs file change namespace to namespace for new project), and Activity1.cs from the sample project (changing namespace to namespace for new project.) After doing the above the project built and the login screen could be launched.
The issue is that the build process is hitting MAX_PATH and not generating all the resources needed a build time.
The workaround to this Windows restriction is to move the project closer to the root of your drive.
I was able to reproduce the error you reported by recreating the same directory structure, then I moved the project to C:\Code\loginscreen-1.4.1\samples\LoginScreen.Android.Sample and it compiled fine.