ConstraintLayout crash in design

Hello, I'm getting this error when I try edit layout file in designer:

[2017-08-23 23:22:32.5] Renderer >> INFO: Clearing out 1 existing ClassLoaders
[2017-08-23 23:22:32.5] Renderer >>
[2017-08-23 23:22:36.3] Renderer >> INFO: Changing screen to -1
[2017-08-23 23:22:36.3] Renderer >> INFO: Creating class loader with 22 projects
[2017-08-23 23:22:36.3] Renderer >>
[2017-08-23 23:22:36.8] Renderer >> INFO: Creating LibraryClassLoader in shadow copy path T:\Temp\AndroidDesignerJars7391463276695194143
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property debug.mono.log.8ee0804a
[2017-08-23 23:22:36.8] Renderer >> 5 [monodroid] Creating public update directory: T:\Temp\tmp5BBA.tmp\.__override__
[2017-08-23 23:22:36.8] Renderer >> 5 [monodroid] Using override path: T:\Temp\tmp5BBA.tmp.__override__
[2017-08-23 23:22:36.8] Renderer >> 5 [monodroid] Using override path: T:\Temp\tmp5BBA.tmp
[2017-08-23 23:22:36.8] Renderer >> 5 [monodroid] Trying to load sgen from: T:\Temp\tmp5BBA.tmp.__override__\libmonosgen-2.0.dll
[2017-08-23 23:22:36.8] Renderer >> 5 [monodroid] Trying to load sgen from: T:\Temp\tmp5BBA.tmp\libmonosgen-2.0.dll
[2017-08-23 23:22:36.8] Renderer >> 5 [monodroid] Trying to load sgen from: T:\Temp\data\libmonosgen-2.0.dll
[2017-08-23 23:22:36.8] Renderer >> 5 [monodroid] Trying to load sgen from: T:\Temp\libmonosgen-64bit-2.0.dll
[2017-08-23 23:22:36.8] Renderer >> 5 [monodroid] Trying to load sgen from: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\libmonosgen-2.0.dll
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Loading Mono symbols...
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property debug.mono.profile.8ee0804a
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp.__override__\debug.mono.profile
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp\debug.mono.profile
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property debug.mono.trace.8ee0804a
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp.__override__\debug.mono.trace
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp\debug.mono.trace
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property debug.mono.connect.8ee0804a
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp.__override__\debug.mono.connect
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp\debug.mono.connect
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Probing for mono.aot AOT mode
[2017-08-23 23:22:36.8] Renderer >>
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Probing if we should use LLVM
[2017-08-23 23:22:36.8] Renderer >>
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property debug.mono.extra.8ee0804a
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp.__override__\debug.mono.extra
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp\debug.mono.extra
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property debug.mono.debug.8ee0804a
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Property 'debug.mono.debug' has value 'true'.
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property debug.mono.gdb.8ee0804a
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp.__override__\debug.mono.gdb
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp\debug.mono.gdb
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property debug.mono.runtime_args.8ee0804a
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp.__override__\debug.mono.runtime_args
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp\debug.mono.runtime_args
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property debug.mono.wref.8ee0804a
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp.__override__\debug.mono.wref
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp\debug.mono.wref
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property persist.sys.dalvik.vm.lib.8ee0804a
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp.__override__\persist.sys.dalvik.vm.lib
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] Trying to get property from T:\Temp\tmp5BBA.tmp\persist.sys.dalvik.vm.lib
[2017-08-23 23:22:36.8] Renderer >> 4 [monodroid] CREATING NEW CONTEXT
[2017-08-23 23:22:37.1] Renderer >> 5 [monodroid-gc] GREF GC Threshold: 46080
[2017-08-23 23:22:37.1] Renderer >> 5 [monodroid] Calling into managed runtime init
[2017-08-23 23:22:37.2] Renderer >> 4 [monodroid] Created new context with id 1
[2017-08-23 23:22:37.2] Renderer >>
[2017-08-23 23:22:37.2] Renderer >> INFO: Setting id 1 on newly created ClassLoader
[2017-08-23 23:22:37.2] Renderer >>
[2017-08-23 23:22:37.2] Renderer >> INFO: Trying to load class android.support.constraint.ConstraintLayout
[2017-08-23 23:22:37.2] Renderer >>
[2017-08-23 23:22:37.2] Renderer >> ERROR: An exception occured while loading control android.support.constraint.ConstraintLayout
[2017-08-23 23:22:37.2] Renderer >> ERROR: java.lang.NoClassDefFoundError: android/support/constraint/solver/widgets/ConstraintWidget
[2017-08-23 23:22:37.2] Renderer >> at java.lang.Class.getDeclaredConstructors0(Native Method)
[2017-08-23 23:22:37.2] Renderer >> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
[2017-08-23 23:22:37.2] Renderer >> at java.lang.Class.getConstructor0(Class.java:3075)
[2017-08-23 23:22:37.2] Renderer >> at java.lang.Class.getConstructor(Class.java:1825)
[2017-08-23 23:22:37.2] Renderer >> at mono.android.SessionProjectCallback.instantiateClass(SessionProjectCallback.java:337)
[2017-08-23 23:22:37.2] Renderer >> at mono.android.SessionProjectCallback.loadView(SessionProjectCallback.java:179)
[2017-08-23 23:22:37.2] Renderer >> at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:334)
[2017-08-23 23:22:37.2] Renderer >> at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:345)
[2017-08-23 23:22:37.2] Renderer >> at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:245)
[2017-08-23 23:22:37.2] Renderer >> at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
[2017-08-23 23:22:37.2] Renderer >> at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
[2017-08-23 23:22:37.2] Renderer >> at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
[2017-08-23 23:22:37.2] Renderer >> at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:324)
[2017-08-23 23:22:37.2] Renderer >> at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
[2017-08-23 23:22:37.2] Renderer >> at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:368)
[2017-08-23 23:22:37.2] Renderer >> at mono.android.DesignerSession.load(DesignerSession.java:233)
[2017-08-23 23:22:37.2] Renderer >> at mono.android.DesignerSession.processMessage(DesignerSession.java:704)
[2017-08-23 23:22:37.2] Renderer >> at mono.android.MessageListener.executeMessage(MessageListener.java:88)
[2017-08-23 23:22:37.2] Renderer >> at mono.android.MessageListener$Runner.run(MessageListener.java:44)
[2017-08-23 23:22:37.2] Renderer >> at java.lang.Thread.run(Thread.java:748)
[2017-08-23 23:22:37.2] Renderer >> Caused by: java.lang.ClassNotFoundException: android.support.constraint.solver.widgets.ConstraintWidget
[2017-08-23 23:22:37.2] Renderer >> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
[2017-08-23 23:22:37.2] Renderer >> at mono.android.LibraryClassLoader.findClass(LibraryClassLoader.java:53)
[2017-08-23 23:22:37.2] Renderer >> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[2017-08-23 23:22:37.2] Renderer >> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[2017-08-23 23:22:37.2] Renderer >> ... 20 more
[2017-08-23 23:22:37.2] Renderer >>
[2017-08-23 23:22:37.2] Renderer >> WARNING: Bridge [resources.format] You must supply a layout_width attribute.
[2017-08-23 23:22:37.2] Renderer >> WARNING: Bridge [resources.format] You must supply a layout_height attribute.
[2017-08-23 23:22:37.2] Renderer >> 4 [monodroid] SWITCHING CONTEXT
[2017-08-23 23:22:40.3] Renderer >> 4 [monodroid] SWITCHING CONTEXT

I don't use the Android SDK that come with VS, instead I use the SDK of Android Studio. The error occurs only at design time because the project compiles successfully.

Thanks.

Posts

Sign In or Register to comment.