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?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.