Home > Enterprise >  How to fix Xamarin "Could not find file xamarin.android.glide.disklrucache\4.12.0.4\buildTran
How to fix Xamarin "Could not find file xamarin.android.glide.disklrucache\4.12.0.4\buildTran

Time:12-15

I am trying to build a project "Wowonder Mobile Native Social Timeline Applications" and this error came up:

Severity Code Description Project File Line Suppression State Error: Could not find file 'C:\Users\CODED.nuget\packages\xamarin.android.glide.disklrucache\4.12.0.4\buildTransitive\monoandroid10.0....\jar\annotations.jar'. File name: 'C:\Users\CODED.nuget\packages\xamarin.android.glide.disklrucache\4.12.0.4\buildTransitive\monoandroid10.0....\jar\annotations.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.Set1.InternalGetHashCode(TElement value) at System.Linq.Set1.Find(TElement value, Boolean add) at System.Linq.Enumerable.d__641.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) at Xamarin.Android.Tasks.CheckDuplicateJavaLibraries.RunTask() at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in /Users/builder/azdo/_work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 17 WoWonder

CodePudding user response:

This problem seems to be caused by different versions.

Try to uninstall the Nuget package and reinstall 4.12.0.2 or 4.12.0.0 to try.

CodePudding user response:

Multiple people have reported the same issue and the problem still exists in the 4.12.0.5 nuget.

The solution is to revert to 4.12.0.2 and wait for the next update.

See: https://github.com/xamarin/GooglePlayServicesComponents/issues/545

  • Related