Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (2014) Getting Started with Android Creating the Fun Facts Project

Hassan Osman
Hassan Osman
628 Points

the android studio is not loading the phone in the preview box . i have a message called rendering problem

heeeeeeeeeeeeeeeeeeellllllllllllllp

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Adding your screenshot for reference:

Imgur

3 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Hey Hassan Osman, for your first step, try out the solution posted here on StackOverflow: http://stackoverflow.com/a/30253591/475217

After that you'll need to click on the Gradle Sync button (the one with the green arrow pointing down). That may pull in the required classes to fix your rendering problems. If not, post back here with details. :smile:

Hassan Osman
Hassan Osman
628 Points

i think i did it . igot a mobile device view with title fun activty and hello word

Hi,

I tried the solution in Stack Overflow then followed your instructions after that and I'm still getting an error:

Rendering Problems The following classes could not be instantiated: - android.support.v7.internal.widget.ActionBarOverlayLayout (Open Class, Show Exception, Clear Cache) Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE Exception Details java.lang.NoClassDefFoundError: Could not initialize class android.support.v7.internal.widget.ActionBarOverlayLayout   at java.lang.reflect.Constructor.newInstance(Constructor.java:422)   at android.view.LayoutInflater.inflate(LayoutInflater.java:482)   at android.view.LayoutInflater.inflate(LayoutInflater.java:414)   at com.android.layoutlib.bridge.bars.BridgeActionBar.<init>(BridgeActionBar.java:84)   at com.android.layoutlib.bridge.bars.AppCompatActionBar.<init>(AppCompatActionBar.java:56) Copy stack to clipboard

Any ideas what else I can try. Also, i downloaded JDK SE Development Kit 8 instead of 7 - do you think this is causing the problem?

Chandler Tayek
Chandler Tayek
5,513 Points

I'm having the exact same issue Daniel!

so my computer had to restart a couple times and then I opened Android Studio and all of a sudden its all working.... so not sure if i just restarting my computer resolved the issue here.

Chandler Tayek
Chandler Tayek
5,513 Points

So apparently it is a known issue that there is a rendering problem with the theme. Here is the link to the bug -> https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=78944

If you change the theme by clicking on the theme button locked directly in the middle above the preview box. I selected the Android:Theme.Holo and the preview worked fine.