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) Creating the Screen Layout Adding a Button

Tim Indyk
Tim Indyk
6,426 Points

When I try to drag the button onto the design preview in Android Studio, the whole program freezes.

I tried restarting the pc, using older versions of JDK, and I cannot get it to work.

Tim Indyk
Tim Indyk
6,426 Points

I reinstalled the newer 7 JDK and it seems to have fixed it.

alex gwartney
alex gwartney
8,849 Points

Another thing that i found that will make it completely freeze up at least on mine because sometimes i have multiple projects open at the same time is that it will crash with that so i have to make sure to not have multiple instances of android studio running. Also I have ran into the problem off and on to were if you have preview all screen sizes up and you have multiple XML files up as well that will also slow it down to were it can crash as well. So not sure if any one else has had that experience or you have but just in case figured i would let you know of that as well.