Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Cordinatorlayout crashes the designer after update

Hello,
couple of days ago i've updated the android support library and visual studio to the latest version
-there is no problem with building/deploying the project but
-the designer keeps on crashing whenever there is a cordinatorlayout(all other layouts without a cordinatorlayout work)
error:

         Failed to process message Load
         java.lang.NullPointerException
          at android.content.res.Resources_Delegate.getResourceValue(Resources_Delegate.java:165)
          at android.content.res.Resources_Delegate.getDimensionPixelSize(Resources_Delegate.java:599)
          at android.content.res.Resources.getDimensionPixelSize(Resources.java:716)
          at android.view.ViewConfiguration.<init>(ViewConfiguration.java:357)
          at android.view.ViewConfiguration.get(ViewConfiguration.java:437)
          at android.support.design.widget.HeaderBehavior.onTouchEvent(HeaderBehavior.java:121)
          at android.support.design.widget.CoordinatorLayout.resetTouchBehaviors(CoordinatorLayout.java:389)
          at android.support.design.widget.CoordinatorLayout.onDetachedFromWindow(CoordinatorLayout.java:254)
          at android.view.View.dispatchDetachedFromWindow(View.java:17463)
          at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3701)
          at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3693)
          at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3693)
          at android.view.AttachInfo_Accessor.detachFromWindow(AttachInfo_Accessor.java:51)
          at com.android.layoutlib.bridge.impl.RenderSessionImpl.dispose(RenderSessionImpl.java:1122)
          at com.android.layoutlib.bridge.BridgeRenderSession.dispose(BridgeRenderSession.java:139)
          at mono.android.DesignerSession.load(DesignerSession.java:226)
          at mono.android.DesignerSession.processMessage(DesignerSession.java:659)
          at mono.android.MessageListener.executeMessage(MessageListener.java:88)
          at mono.android.MessageListener$Runner.run(MessageListener.java:44)
      at java.lang.Thread.run(Thread.java:748)

log:
[2018-03-25 13:29:24.1] Renderer >> INFO: Creating LibraryClassLoader in shadow copy path C:\Users\Oussama\AppData\Local\Temp\AndroidDesignerJars3096151909479947132
[2018-03-25 13:29:24.1] Renderer >> INFO: Trying to load class android.support.v7.widget.AppCompatTextView
[2018-03-25 13:29:24.1] Renderer >>
[2018-03-25 13:29:24.1] Renderer >> INFO: Trying to load class android.support.v7.widget.AppCompatImageView
[2018-03-25 13:29:24.1] Renderer >>
[2018-03-25 13:29:24.1] Renderer >> INFO: Trying to load class android.support.v7.widget.AppCompatImageView
[2018-03-25 13:29:24.1] Renderer >>
[2018-03-25 13:29:24.1] Renderer >> INFO: Trying to load class android.support.v7.widget.AppCompatTextView
[2018-03-25 13:29:24.1] Renderer >>
[2018-03-25 13:29:24.1] Renderer >> INFO: Trying to load class android.support.design.widget.CoordinatorLayout
[2018-03-25 13:29:24.1] Renderer >>
[2018-03-25 13:29:24.1] Renderer >> INFO: Trying to load class android.support.design.widget.AppBarLayout
[2018-03-25 13:29:24.1] Renderer >>
[2018-03-25 13:29:24.1] Renderer >> TODO: getParser2
[2018-03-25 13:29:24.1] Renderer >> INFO: Trying to load class android.support.v7.widget.Toolbar
[2018-03-25 13:29:24.1] Renderer >>
[2018-03-25 13:29:24.1] Renderer >> TODO: getParser2
[2018-03-25 13:29:24.1] Renderer >> TODO: getParser2
[2018-03-25 13:29:24.1] Renderer >> TODO: getParser2
[2018-03-25 13:29:24.1] Renderer >> TODO: getParser2
[2018-03-25 13:29:24.1] Renderer >> TODO: getParser2
[2018-03-25 13:29:24.1] Renderer >> TODO: getParser2
[2018-03-25 13:29:24.1] Renderer >> TODO: getParser2
[2018-03-25 13:29:24.1] Renderer >> INFO: Trying to load class android.support.v4.widget.NestedScrollView
[2018-03-25 13:29:24.1] Renderer >>
[2018-03-25 13:31:08.5] Renderer >> ERROR: Failed to process message Load
[2018-03-25 13:31:08.5] Renderer >> ERROR: java.lang.NullPointerException
[2018-03-25 13:31:08.5] Renderer >> at android.content.res.Resources_Delegate.getResourceValue(Resources_Delegate.java:165)
[2018-03-25 13:31:08.5] Renderer >> at android.content.res.Resources_Delegate.getDimensionPixelSize(Resources_Delegate.java:599)
[2018-03-25 13:31:08.5] Renderer >> at android.content.res.Resources.getDimensionPixelSize(Resources.java:716)
[2018-03-25 13:31:08.5] Renderer >> at android.view.ViewConfiguration.(ViewConfiguration.java:357)
[2018-03-25 13:31:08.5] Renderer >> at android.view.ViewConfiguration.get(ViewConfiguration.java:437)
[2018-03-25 13:31:08.5] Renderer >> at android.support.design.widget.HeaderBehavior.onTouchEvent(HeaderBehavior.java:121)
[2018-03-25 13:31:08.5] Renderer >> at android.support.design.widget.CoordinatorLayout.resetTouchBehaviors(CoordinatorLayout.java:389)
[2018-03-25 13:31:08.5] Renderer >> at android.support.design.widget.CoordinatorLayout.onDetachedFromWindow(CoordinatorLayout.java:254)
[2018-03-25 13:31:08.5] Renderer >> at android.view.View.dispatchDetachedFromWindow(View.java:17463)
[2018-03-25 13:31:08.5] Renderer >> at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3701)
[2018-03-25 13:31:08.5] Renderer >> at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3693)
[2018-03-25 13:31:08.5] Renderer >> at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3693)
[2018-03-25 13:31:08.5] Renderer >> at android.view.AttachInfo_Accessor.detachFromWindow(AttachInfo_Accessor.java:51)
[2018-03-25 13:31:08.5] Renderer >> at com.android.layoutlib.bridge.impl.RenderSessionImpl.dispose(RenderSessionImpl.java:1122)
[2018-03-25 13:31:08.5] Renderer >> at com.android.layoutlib.bridge.BridgeRenderSession.dispose(BridgeRenderSession.java:139)
[2018-03-25 13:31:08.5] Renderer >> at mono.android.DesignerSession.load(DesignerSession.java:226)
[2018-03-25 13:31:08.5] Renderer >> at mono.android.DesignerSession.processMessage(DesignerSession.java:659)
[2018-03-25 13:31:08.5] Renderer >> at mono.android.MessageListener.executeMessage(MessageListener.java:88)
[2018-03-25 13:31:08.5] Renderer >> at mono.android.MessageListener$Runner.run(MessageListener.java:44)
[2018-03-25 13:31:08.5] Renderer >> at java.lang.Thread.run(Thread.java:748)
[2018-03-25 13:31:08.5] Renderer >>
[2018-03-25 13:31:08.5] Renderer >> ERROR: Failed to process message Unload
[2018-03-25 13:31:08.5] Renderer >> ERROR: java.lang.NullPointerException
[2018-03-25 13:31:08.5] Renderer >> at android.content.res.Resources_Delegate.getResourceValue(Resources_Delegate.java:165)
[2018-03-25 13:31:08.5] Renderer >> at android.content.res.Resources_Delegate.getDimensionPixelSize(Resources_Delegate.java:599)
[2018-03-25 13:31:08.5] Renderer >> at android.content.res.Resources.getDimensionPixelSize(Resources.java:716)
[2018-03-25 13:31:08.5] Renderer >> at android.view.ViewConfiguration.(ViewConfiguration.java:357)
[2018-03-25 13:31:08.5] Renderer >> at android.view.ViewConfiguration.get(ViewConfiguration.java:437)
[2018-03-25 13:31:08.5] Renderer >> at android.support.design.widget.HeaderBehavior.onTouchEvent(HeaderBehavior.java:121)
[2018-03-25 13:31:08.5] Renderer >> at android.support.design.widget.CoordinatorLayout.resetTouchBehaviors(CoordinatorLayout.java:389)
[2018-03-25 13:31:08.5] Renderer >> at android.support.design.widget.CoordinatorLayout.onDetachedFromWindow(CoordinatorLayout.java:254)
[2018-03-25 13:31:08.5] Renderer >> at android.view.View.dispatchDetachedFromWindow(View.java:17463)
[2018-03-25 13:31:08.5] Renderer >> at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3701)
[2018-03-25 13:31:08.5] Renderer >> at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3693)
[2018-03-25 13:31:08.5] Renderer >> at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3693)
[2018-03-25 13:31:08.5] Renderer >> at android.view.AttachInfo_Accessor.detachFromWindow(AttachInfo_Accessor.java:51)
[2018-03-25 13:31:08.5] Renderer >> at com.android.layoutlib.bridge.impl.RenderSessionImpl.dispose(RenderSessionImpl.java:1122)
[2018-03-25 13:31:08.5] Renderer >> at com.android.layoutlib.bridge.BridgeRenderSession.dispose(BridgeRenderSession.java:139)
[2018-03-25 13:31:08.5] Renderer >> at mono.android.DesignerSession.unload(DesignerSession.java:315)
[2018-03-25 13:31:08.5] Renderer >> at mono.android.DesignerSession.processMessage(DesignerSession.java:654)
[2018-03-25 13:31:08.5] Renderer >> at mono.android.MessageListener.executeMessage(MessageListener.java:88)
[2018-03-25 13:31:08.5] Renderer >> at mono.android.MessageListener$Runner.run(MessageListener.java:44)
[2018-03-25 13:31:08.5] Renderer >> at java.lang.Thread.run(Thread.java:748)
[2018-03-25 13:31:08.5] Renderer >>
[2018-03-25 13:31:08.5] ERROR: : Session unload failed
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: The operation Unload failed due to an internal error: .
at Xamarin.AndroidDesigner.Java.JavaProcessConnection.d__53.MoveNext() in E:\A_work\17\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Java\JavaProcessConnection.cs:line 260
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.AndroidDesigner.AndroidRenderSession.d__74.MoveNext() in E:\A_work\17\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidRenderSession.cs:line 256
--- End of stack trace from previous location where exception was thrown ---

Sign In or Register to comment.