When I was trying to debug a Xamarin Forms application on my Android phone, my laptop shut down twice. Now whenever I launch Visual Studio, the Android project will not load.
I tried cleaning and reloading the project, but that doesn't work. Restarting Visual Studio doesn't work either.
When I tried reloading the Android project, I got the error "The project file could not be loaded. Root element is missing."
I had the same problem. The solution I found was deleting the .Droid.csproj.user
file which was corrupted.
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.