Forum Xamarin.Android

<include/> tag inside a layout gives designer rendering error

When trying to reproduce this Android toolbar example:

The designer cannot render the include tag and gives the following error:

android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1145)
android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1121)
android.content.res.Resources_Delegate.getLayout(Resources_Delegate.java:497)
android.content.res.Resources.getLayout(Resources.java:1155)
android.view.LayoutInflater_Delegate.parseInclude(LayoutInflater_Delegate.java:140)
android.view.LayoutInflater.parseInclude(LayoutInflater.java:900)
android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:859)
android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
android.view.LayoutInflater.inflate(LayoutInflater.java:515)
android.view.LayoutInflater.inflate(LayoutInflater.java:394)
com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:323)
com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:394)
com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:271)
mono.android.DesignerSession.loadInternal(DesignerSession.java:273)
mono.android.DesignerSession.lambda$load$0(DesignerSession.java:223)
mono.android.MonoDroidBroker.executeInMonoDroidContext(MonoDroidBroker.java:80)
mono.android.DesignerSession.load(DesignerSession.java:223)
mono.android.DesignerSession.processMessage(DesignerSession.java:676)
mono.android.MessageListener.executeMessage(MessageListener.java:88)
mono.android.MessageListener$Runner.run(MessageListener.java:44)
java.lang.Thread.run(Thread.java:748)

This annoying error is already documented all over the internet months ago, without correction in any new versions of Visual Studio/Xamarin!!
Also there is not even a workaround!
Please correct this as soon as possible.
Tx in advance.

Sign In or Register to comment.