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 Running the Fun Facts Project

Christian Lawrence
Christian Lawrence
3,941 Points

Android studio rendering problems

I'm setting up the AndroidStudio, when I click run the emulator doesn't show the app screen and instead of a preview I get http://imgur.com/FvMtEnK

Rendering Problems java.lang.NullPointerException   at com.android.internal.app.WindowDecorActionBar.setHasEmbeddedTabs(WindowDecorActionBar.java:265)   at com.android.internal.app.WindowDecorActionBar.init(WindowDecorActionBar.java:217)   at com.android.internal.app.WindowDecorActionBar.<init>(WindowDecorActionBar.java:182)   at com.android.layoutlib.bridge.bars.ActionBarLayout.<init>(ActionBarLayout.java:98)   at com.android.layoutlib.bridge.impl.RenderSessionImpl.createActionBar(RenderSessionImpl.java:1627)   at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:355)   at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:329)   at com.android

Am running OSX 10.9.4

2 Answers

Christian Lawrence
Christian Lawrence
3,941 Points

I've just started the Basic Android app course, haven't coded anything yet, just been setting up the software :( Guess I must have missed something in the process

Ratik Sharma
Ratik Sharma
32,885 Points

You can always try re-installing. :)

Ratik Sharma
Ratik Sharma
32,885 Points

A NullPointerException usually means you haven't linked up the XML and Java properly or that you are calling a function on an object which doesn't actually exist at that instant.

What exactly is your XML and Java like? Code snippets would be helpful. :)