Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 3227 [details]
the problem is when I put the layout in that folder and trying to save the changes I had made, at that time error is encountering and automatically that folder disappears.
I want to create Resources for Varying Screens.
I have created folders as per given in the following link:
But the problem is when I put the layout in that folder and trying to save the changes I had made, at that time error is encountering and automatically that folder disappears.
Error is as follows:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at MonoDevelop.MonoDroid.Gui.AndroidDesignerView.HandleSessionModifiedChanged(Object sender, EventArgs e)
at Xamarin.AndroidDesigner.AndroidDesignerSession.set_Modified(Boolean value)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object parameters)
at MonoDevelop.Components.Commands.CommandHandlerInfo.Run(Object cmdTarget, Command cmd)
at MonoDevelop.Components.Commands.CommandManager.DispatchCommand(Object commandId, Object dataItem, Object initialTarget, CommandSource source)
This bug has already been fixed and the fix will be included in upcoming releases.
The designer allows you to create alternative resources without having to manually create new layout folders. See http://docs.xamarin.com/Android/Guides/User_Interface/Designer_Overview/Part_3_-_Alternative_Layout_Views
*** This bug has been marked as a duplicate of bug 7871 ***