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 trialwajd tohme
10,240 PointsUpdated SDK files, wouldnt let me use your version of Android Studio, updated to v1.2, i get an error with rendering
i had the v0.8.6 downloaded and i updated the SDK files like you did in the video, but then when i opened a project it wouldn't show me a rendering in the layout file saying this version of android studio is incompatibe with rendering library, update android studio and so i updated android studio to 1.2 and now whenever i open a new project i get this error: Rendering Problems The following classes could not be instantiated: -Β android.support.v7.internal.widget.ActionBarOverlayLayout (Open Class, Show Exception, Clear Cache) Exception Details java.lang.ClassNotFoundException: android.support.v7.appcompat.R$attr
PS: im also using JDK v8 not v7
wajd tohme
10,240 Pointsturns out its easy to fix, clean project, rebuild it, and then sync with gradle files.
Michael Beckwith
4,807 PointsHow do I sync with the Gradle files? I kept seeing everyone say they manually synced the Gradle files but I could not find out how to do this in Android Studio.
5 Answers
wajd tohme
10,240 Pointstools>android> sync with gradle
jenyufu
3,311 PointsDon't do this, I did that and it messed up my project file.
Just go simply change the theme App theme to Holo Light or any other theme that is not the default "Project Themes" and it will solve it.
John Griswold
2,184 PointsMichael, did that fix your issue? I'm having the same problem (and can't find the "Android version to use" bit Neranya proposes to modify). Tnx, John
Michael Beckwith
4,807 PointsThe way I fixed my issue was to change the theme used for the application. From my experience any theme change will work. I have not tried any of the other methods.
John Griswold
2,184 PointsI was able to find the "Android version to use" pulldown. I only have API 15. API 21 was not in the bundle I downloaded today in my attempts to start with a clean slate. So I installed SDK everything up to SDK 22, and selected API 21 as a starting point. I bet I'll be confused in the class material, but at least I'll move forward.
Thanks to all who chimed in to help.
John Griswold
2,184 PointsI just upgraded across the board, iterating through several cycles of upgrades, until it stopped complaining. There are minor differences relative to the coursework,but that is minor.
Naranya Studios
Courses Plus Student 12,575 PointsQuick fix: Select 21 in the option "Android version to use when rendering layouts in the IDE"
Michael Beckwith
4,807 PointsMichael Beckwith
4,807 PointsI am having this issue as well. on Android Studio 1.2 and JDK v8. The error has been acknowledged by Google but the instructions on how to fix this are lost on me. Any help would be appreciated. This is the bug number 170841.