Bug 23857 - Cannot build simple xamarin.forms FormsViewGroup.Jars.formsviewgroup.jar problem
Summary: Cannot build simple xamarin.forms FormsViewGroup.Jars.formsviewgroup.jar problem
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-10-15 14:04 UTC by Iliass Yousfi
Modified: 2016-03-18 08:38 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
MyCase (5.80 MB, video/mp4)
2014-10-16 12:06 UTC, Iliass Yousfi
Details


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:
Status:
RESOLVED FIXED

Description Iliass Yousfi 2014-10-15 14:04:32 UTC
Just started new project from Mobile template with blank project with PCL support on Visual Studio
Used Nuget to add Xamarin.forms with latest released (1.2.3.6257)

Get build error :
Error	2	Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Users\iYousfi\Documents\Visual Studio 2013\Settings\Users\iyousfi\Documents\Visual Studio 2013\Settings\Visual Studio 2010\Projects\App1\App1\App1.Android\obj\Debug\__library_projects__\FormsViewGroup\library_project_imports\FormsViewGroup.Jars.formsviewgroup.jar"	C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets	668	2	App1.Android

****************************
Version Info
****************************

Microsoft Visual Studio Premium 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Premium

NuGet Package Manager   2.8.50313.46
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Xamarin   3.7.203.0 (ff146f5240189a2ec6d3c6f75cf3967f79c79a18)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.18.0.34 (3b7ef0a796e8744972c48034403a6e7cb7ec189e)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.2.0.0 (65b2f3a0f52f365b90ac952f0ec2e40fa0b510d4)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Iliass Yousfi 2014-10-15 14:06:58 UTC
Here is the nuget xamarin.forms version
Xamarin.Forms.1.2.3.6257
Comment 2 Iliass Yousfi 2014-10-15 14:38:50 UTC
Here is the nuget xamarin.forms version
Xamarin.Forms.1.2.3.6257
Comment 3 Sadik Ali 2014-10-16 09:30:23 UTC
I have checked this issue and observed that able to update Xamarin.Forms.1.0.6186 to Xamarin.forms to 1.2.3.6257 and build application successfully.

I tried following steps to reproduce it.
1.Create A Xamarin.Forms PCL Application.
2.Update Xamarin.Forms using Nuget via Right click of Properties->Manage Nuget Package->Update(In Left pane). 
3.Build the application.

we are able to build and deploy application successfully.

Screencast regarding same :
http://screencast.com/t/3FaO3gs2

Let me know if I missed anything to reproduce it ?

Environment Info:

Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

Xamarin   3.7.203.0 (ff146f5240189a2ec6d3c6f75cf3967f79c79a18)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.18.0.34 (3b7ef0a796e8744972c48034403a6e7cb7ec189e)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.2.0.0 (65b2f3a0f52f365b90ac952f0ec2e40fa0b510d4)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 4 Iliass Yousfi 2014-10-16 11:56:45 UTC
Thanks for your reply

I see that it's working on your configuration, but you can see here the stream I made here: http://screencast-o-matic.com/watch/c26Dodejuz

The only differences I can think of: 
1. You had previous version of xamarin.forms nuget that you updated, while for me I installed directly the new one that is the only available version.
2. On your Object Browser, you had 2 Xamarin.Forms assemblies in your GAC while I have only one. The one I am missing shows on your stream a version Xamarin.Forms.Core [1.2.3.0]

I think it's about xamarin.forms nuget manager.
Comment 5 Iliass Yousfi 2014-10-16 12:06:45 UTC
Created attachment 8432 [details]
MyCase

video sequence to show the way I have it on my configuration
Comment 6 Iliass Yousfi 2014-10-16 12:07:12 UTC
please see attchements for my recording
Comment 7 Sadik Ali 2014-10-17 08:07:38 UTC
@Iliass
I have checked this issue and observed that after update Xamarin.forms to latest application build and deploy successfully.

I tried the steps mentioned in Comment 5.

Screencast regarding Same:
http://screencast.com/t/OUDF29Z0vJ

Environment Info:
Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.51641
Installed Version: Professional

Xamarin   3.7.203.0 (ff146f5240189a2ec6d3c6f75cf3967f79c79a18)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.18.0.34 (3b7ef0a796e8744972c48034403a6e7cb7ec189e)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.2.0.0 (65b2f3a0f52f365b90ac952f0ec2e40fa0b510d4)
Visual Studio extension to enable development for Xamarin.iOS.


Let me know if I missed anything to reproduce it?
Comment 8 Iliass Yousfi 2014-10-17 10:09:44 UTC
Finally I've found the problem. the build output on my test project gave me :
ResolveLibraryProjectImports Task (TaskId:84)
3>    ImportsDirectory: library_project_imports (TaskId:84)
3>    OutputDirectory: obj\Debug\ (TaskId:84)
3>    OutputImportDirectory: obj\Debug\__library_projects__\ (TaskId:84)
3>    UseShortFileNames: False (TaskId:84)
3>    Assemblies:  (TaskId:84)
3>      C:\Users\iYousfi\Documents\Visual Studio 2013\Settings\Users\iyousfi\Documents\Visual Studio 2013\Settings\Visual Studio 2010\Projects\App2\App2\App2\bin\Debug\App2.dll (TaskId:84)
3>      C:\Users\iYousfi\Documents\Visual Studio 2013\Settings\Users\iyousfi\Documents\Visual Studio 2013\Settings\Visual Studio 2010\Projects\App2\packages\Xamarin.Forms.1.2.3.6257\lib\MonoAndroid10\FormsViewGroup.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v4.4\Mono.Android.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll (TaskId:84)
3>      C:\Users\iYousfi\Documents\Visual Studio 2013\Settings\Users\iyousfi\Documents\Visual Studio 2013\Settings\Visual Studio 2010\Projects\App2\packages\Xamarin.Android.Support.v13.20.0.0.4\lib\MonoAndroid32\Xamarin.Android.Support.v13.dll (TaskId:84)
3>      C:\Users\iYousfi\Documents\Visual Studio 2013\Settings\Users\iyousfi\Documents\Visual Studio 2013\Settings\Visual Studio 2010\Projects\App2\packages\Xamarin.Android.Support.v4.20.0.0.4\lib\MonoAndroid32\Xamarin.Android.Support.v4.dll (TaskId:84)
3>      C:\Users\iYousfi\Documents\Visual Studio 2013\Settings\Users\iyousfi\Documents\Visual Studio 2013\Settings\Visual Studio 2010\Projects\App2\packages\Xamarin.Forms.1.2.3.6257\lib\MonoAndroid10\Xamarin.Forms.Core.dll (TaskId:84)
3>      C:\Users\iYousfi\Documents\Visual Studio 2013\Settings\Users\iyousfi\Documents\Visual Studio 2013\Settings\Visual Studio 2010\Projects\App2\packages\Xamarin.Forms.1.2.3.6257\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll (TaskId:84)
3>      C:\Users\iYousfi\Documents\Visual Studio 2013\Settings\Users\iyousfi\Documents\Visual Studio 2013\Settings\Visual Studio 2010\Projects\App2\packages\Xamarin.Forms.1.2.3.6257\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Runtime.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Resources.ResourceManager.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.ObjectModel.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Globalization.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Collections.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Threading.Tasks.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Linq.Expressions.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Dynamic.Runtime.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Reflection.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.IO.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.ComponentModel.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Threading.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Runtime.Extensions.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Reflection.Extensions.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Diagnostics.Debug.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Linq.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Net.Http.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Xml.ReaderWriter.dll (TaskId:84)
3>      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Text.RegularExpressions.dll (TaskId:84)
3>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(668,2): monodroid error XA0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Users\iYousfi\Documents\Visual Studio 2013\Settings\Users\iyousfi\Documents\Visual Studio 2013\Settings\Visual Studio 2010\Projects\App2\App2\App2.Android\obj\Debug\__library_projects__\FormsViewGroup\library_project_imports\FormsViewGroup.Jars.formsviewgroup.jar"
3>    Jars:  (TaskId:84)
3>    ResolvedResourceDirectories:  (TaskId:84)
3>    ResolvedAssetDirectories:  (TaskId:84)
3>    ResolvedEnvironmentFiles:  (TaskId:84)
3>Done executing task "ResolveLibraryProjectImports" -- FAILED. (TaskId:84)
3>Done building target "_ExtractLibraryProjectImports" in project "App2.Android.csproj" -- FAILED.: (TargetId:39)

So the problem is the libraries path looks longer than expected! but the build error is pointing to completly other things

By moving my solution to a shorter path (C:\\App2) then it works no problem

You may check that thing and try your test app in a deeper path on your PC
Comment 9 Márcio de Souza Júnior 2015-01-04 09:01:20 UTC
Had a similar problem and the this workaround above worked for me.
Comment 10 Jason Smith [MSFT] 2016-03-18 08:38:40 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we no longer believe it affects the current version of Xamarin.Forms. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.
 
For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d

Warm regards,
Xamarin Forms Team