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 trialHassan Osman
628 Pointsthe android studio is not loading the phone in the preview box . i have a message called rendering problem
heeeeeeeeeeeeeeeeeeellllllllllllllp
3 Answers
Ben Jakuben
Treehouse TeacherHey 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.
Hassan Osman
628 Pointsi think i did it . igot a mobile device view with title fun activty and hello word
Daniel Chapman
561 PointsHi,
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
5,513 PointsI'm having the exact same issue Daniel!
Daniel Chapman
561 Pointsso 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
5,513 PointsSo 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.
Ben Jakuben
Treehouse TeacherBen Jakuben
Treehouse TeacherAdding your screenshot for reference: