0
votes

Project worked perfect until i updated from Xamarin.Forms 4.8 to Xamarin.Forms 5.0 and Target Framework from Android 9.0 to Android 10.0. This is the error i get:

Severity Code Description Project File Line Suppression State Error Failed to generate Java type for class: Google.Android.Material.BottomNavigation.BottomNavigationView/IOnNavigationItemReselectedListenerImplementor due to MAX_PATH: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\vaskoj\Desktop\InstagramCloneInterviewApp\InstagramCloneInterviewApp\InstagramCloneInterviewApp.Android\obj\Debug\100\android\src\mono\com\google\android\material\bottomnavigation\BottomNavigationView_OnNavigationItemReselectedListenerImplementor.java'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalDelete(String path, Boolean checkHost) at System.IO.File.Delete(String path) at Xamarin.Android.Tools.Files.CopyIfStreamChanged(Stream stream, String destination) at Xamarin.Android.Tasks.GenerateJavaStubs.CreateJavaSources(IEnumerable`1 javaTypes, TypeDefinitionCache cache) InstagramCloneInterviewApp.Android

Someone have the same problem?

1

1 Answers

1
votes

Try moving your solution folder to a shorter path (closer to the root), for example move it to root folder "D:" or "C:".

You have reached the the maximum length for a path which is defined by MAX_PATH Maximum Path Length Limitation