Rendering Problem: android.support.design.widget

Hello. I’m trying to render xml resources in Android Studio. I’ve updated these to include some current elements from Android templates, like android.support.design.widget.AppBarLayout and android.support.design.widget.AppBarLayout, but I get a “Rendering Problems: The following classes could not be found.” message in the Android Studio design view.

All the related solutions I can find online relate to Gradle (which I know Fire doesn’t use) or suggest switching the viewing Theme or API (which doesn’t solve this issue).

Thanks!

Hmm. I gotta admit I’m not too familiar with Android Studio’s designer, beyond the basic integration we do. Does the layout work fine at runtime? Can you send me the project tha shows this error? (I’m assuming you’re using the latest Android Studio version?)

Thanks. I discovered a workaround - the newest Android Studio templates (which were causing this problem when I used THEIR xml re-imported from Fire) use a content_main that nests inside main.xml. The content_main renders, but not the main. So I can still design within the content file.

Here’s the XML that causes the error. Again, this is the exact template from Android Studio, re-imported from Fire. It must be a setting that is automatically set with an Android Studio template, that does not get set when importing XML files from Fire to edit.

<?xml version="1.0" encoding="utf-8"?>

<android.support.design.widget.CoordinatorLayout
xmlns:android=“http://schemas.android.com/apk/res/android
xmlns:app=“http://schemas.android.com/apk/res-auto
xmlns:tools=“http://schemas.android.com/tools” android:layout_width=“match_parent”
android:layout_height=“match_parent” android:fitsSystemWindows=“true”
tools:context=“.MainActivity”>

<android.support.design.widget.AppBarLayout android:layout_height=“wrap_content”
android:layout_width=“match_parent” android:theme=“@style/AppTheme.AppBarOverlay”>

  <android.support.v7.widget.Toolbar android:id="@+id/toolbar"
  	android:layout_width="match_parent" android:layout_height="?attr/actionBarSize"
  	android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>

Here’s a StackOverflow page about the problem, which is obviously not just for Fire imports:
Could not initialize class

Thanx, I’ll investigate more. Can you send me a full project that shows this problem from fire, and a marbling ADS project that does not, so I can compare the two and see what we can change?

Thanx!

I will try to send you an example file ASAP, but I’ve got something else going on now, can’t get any of my code to compile, and I don’t want to send you multiple obvious errors.

How do I upload an entire project? The zip file is larger than the limit on the forum.

Email to support@remobjects.com.

Hi, may I know has this problem been solved because Im also facing this similar problem where Android Studio could not find the class?

Thank You!

I don’t believe its was every reproduced. Can you sen d us your project? thanx!

Thanks, logged as bugs://74971

bugs://E17390 was closed as fixed.