Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Xamarin.Android Designer throws java.lang.ClassNotFoundException when using CoordinatorLayout #140

Open
@tbalcom

Description

@tbalcom

Xamarin.Android Version (eg: 6.0):

9.1.4.2

Operating System & Version (eg: Mac OSX 10.11):

Windows 10 1809

Support Libraries Version (eg: 23.3.0):

28.0.0

Describe your Issue:

Updating Support libraries from 27.0.2.1 to 28.0.0 broke the Xamarin.Android designer ability to render layouts with a CoordinatorLayout.

Steps to Reproduce (with link to sample solution if possible):

Reference Xamarin.Android.Support.Design 28.0.0 and use CoordinatorLayout in a layout then look at the layout using the Xamarin.Android Designer. The same layout renders correctly while referencing Xamarin.Android.Support.Design 27.0.2.1.

The following layout reproduces the error:

<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
    xmlns:android="schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true">
</android.support.design.widget.CoordinatorLayout>

Include any relevant Exception Stack traces, build logs, adb logs:

Clicking the "Show Error" button in the designer displays:

mono.android.LibraryClassLoader.loadAndConvertClass(LibraryClassLoader.java:89)
mono.android.LibraryClassLoader.findClass(LibraryClassLoader.java:57)
java.lang.ClassLoader.loadClass(ClassLoader.java:424)
java.lang.ClassLoader.loadClass(ClassLoader.java:357)
android.support.design.widget.CoordinatorLayout.setupForInsets(CoordinatorLayout.java:3213)
android.support.design.widget.CoordinatorLayout.(CoordinatorLayout.java:226)
android.support.design.widget.CoordinatorLayout.(CoordinatorLayout.java:201)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions