Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Rendering Problems, classes could not be found

I just updated the sdk. I've created a new layout XML with just a FrameLayout and a TextView. And I got a rendering problem:

The following classes could not be found: - android.support.v7.internal.widget.ActionBarOverlayLayout

I've tried, but none did work. how can I fix it?

like image 766
empty-yo Avatar asked Mar 22 '15 13:03

empty-yo


4 Answers

There is a bug in the Android Gradle plugin that will be fixed for version 1.2.3. The bug is described here: http://tools.android.com/knownissues as well as two workarounds. Below is the one I used successfully:

Workaround 1: First manually build the project (Build > Rebuild project), then manually sync the project (using the Sync with Gradle files in the toolbar, or from the Tools > Android menu), then finally press Refresh in the toolbar above the layout editor.

like image 91
gjoranv Avatar answered Oct 21 '22 05:10

gjoranv


Try to change the theme to something different than "AppTheme". I had the same problem and that's how I fixed it.

like image 30
realkarim Avatar answered Oct 21 '22 03:10

realkarim


Simply rebuilding the project Build --> Rebuild Project solved for me

like image 1
Rohit Kumar Verma Avatar answered Oct 21 '22 05:10

Rohit Kumar Verma


I changed the android version used to render layouts from 22 to 17 and it worked.

like image 1
lagwy Avatar answered Oct 21 '22 04:10

lagwy