Android – “checkduplicatejavalibraries” task failed unexpectedly
•
Android
I'm trying to build my application, but the following error pops up. A few days ago, I didn't have any problems building it
Error The "CheckDuplicateJavaLibraries" task Failed unexpectedly.
System.IO.FileNotFoundException: Could not find file 'obj\Debug\__library_projects__\VectorCompat\library_project_imports\bin\classes.jar'.
File name: 'obj\Debug\__library_projects__\VectorCompat\library_project_imports\bin\classes.jar'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileInfo.get_Length()
at Xamarin.Android.Tasks.MonoAndroidHelper.SizeAndContentFileComparer.GetHashCode(FileInfo obj)
at System.Linq.Set`1.InternalGetHashCode(TElement value)
at System.Linq.Set`1.Find(TElement value, Boolean add)
at System.Linq.Enumerable.<DistinctIterator>d__63`1.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Xamarin.Android.Tasks.MonoAndroidHelper.DistinctFilesByContent(IEnumerable`1 filePaths)
at Xamarin.Android.Tasks.CheckDuplicateJavaLibraries.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() TotemAndroid
Should the vectorcompact component be removed and added again? Why did this error suddenly occur when it was well built a few days ago?
Thank you in advance
resolvent:
It seems that some artifacts have not been copied to your obj folder, that is, vectorcompat's classes.jar. I suggest manually deleting the obj folder and rebuilding the solution
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码