Why would my Xamarin suddenly stop opening layouts in layout mode? I have updated the programme, but that doesn't solve the issue.
It gives me this message when I try to open the layout: "The file 'C:\Users\Peter\Documents\Projects\shopping\Resources\layout\Main.axml' could not be opened. Object reference not set to an instance of an object." The file exists, but the programme seems to require an object reference or something.
Have you recently upgraded the Android build tools or Xamarin components? I had to revert the build tools once because of a similar problem.
Hi Peter / Dave,
Did you resolve this? I have just encountered in today
Did you have to reinstall xamarin or something else?
In the end I re-loaded Xamarin. That solved the issue. What I haven't done is update the programme. When I have a moment, I'll see if that works or not. Maybe it's the reason - I don't know. At least I am up and running again.
For anyone else who finds this thread, I am using a MAC.
I installed the latest SDK Tools and Latest SDK Platform Tools in SDK Manager.
And the layouts now open.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies