Bug 26878 - Android Sample for LoginScreen component fails to build.
Summary: Android Sample for LoginScreen component fails to build.
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: N/A
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bill Holmes
Depends on:
Reported: 2015-02-09 15:20 UTC by Jon Goldberger [MSFT]
Modified: 2015-04-27 13:14 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 Jon Goldberger [MSFT] 2015-02-09 15:20:02 UTC
## 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.
Comment 1 Bill Holmes 2015-04-27 13:14:23 UTC
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.