Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Chapter 1 - "ResolveLibraryProjectImports" on Xamarin.Forms v2.3.3.193 #21

Open
FMGordillo opened this issue Mar 29, 2017 · 2 comments
Open

Comments

@FMGordillo
Copy link

FMGordillo commented Mar 29, 2017

Hi, this is the output message (I will translate it to English, the first message only):

Gravedad	Código	Descripción	Proyecto	Archivo	Línea	Estado suprimido
Error		Error inesperado en la tarea "ResolveLibraryProjectImports".
System.IO.PathTooLongException: The specified route or the filename (or both) are too long. Full filename should be less than 260 characters, and pathname should be less than 248.
   en System.IO.PathHelper.GetFullPathName()
   en System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   en System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   en System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
   en System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   en System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   en Xamarin.Tools.Zip.ZipEntry.DoExtract(IntPtr zipFile, String destinationPath, FileMode outputFileMode, EntryExtractEventArgs args)
   en Xamarin.Tools.Zip.ZipEntry.Extract(String destinationDir, String destinationFileName, FileMode outputFileMode)
   en Xamarin.Android.Tools.Files.ExtractAll(ZipArchive zip, String destination, Action`2 progressCallback)
   en Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection`1 jars, ICollection`1 resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
   en Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
   en Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   en Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()	PlatformVisuals.Droid			

I've located this project in my C:. It makes no sense to me this error (and it's happening in similar projects).

Is there any workaround?

@marcnoon
Copy link

marcnoon commented Apr 3, 2017

I think that you are trying to compile your code a complex path. Try to move your project somewhere closer to a drive letter like this: c:\xam\yourprj.

@km6wsy
Copy link

km6wsy commented Feb 26, 2019

Experience similar problem too,
Error Unable to remove directory "obj\Debug\81\android\bin\classes". Could not find a part of the path 'AccessibilityManagerCompat_AccessibilityStateChangeListenerImplementor.class'. PlatformVisuals.Droid
Error The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. PlatformVisuals.Droid
Have tried to clean and rebuild with no luck. If it is a real file directory too long problem then it is something needs to be fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants