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

When I try to run my app, it says it is running but nothing comes up even though I already have the emulator open

When I try to run my app, it says it is running but nothing comes up even though I already have the emulator open .

1 Answer

Garrett Carver
Garrett Carver
14,681 Points

Hi Dhara, There are a few things you can try that should help you narrow down the problem:

  1. Click on 'Android Monitor' to open it, and try running the app in the emulator. Scroll through the text and document any errors you find. If you have any errors in red, please paste them here so we can troubleshoot.

  2. Go to file>new>new project to create a new blank app. Try running that and see if it opens in the emulator. If it does work, then we know it's something wrong with the other app. If the new app has the same issue, then it could be the emulator is not configured properly (or won't work with your hardware). There are some other options we can use to test your app if that's the issue.

  3. Post your Activity code from Java>package name>MainActivity here, and we might be able to spot the issue.

Hopefully this will help shed light on the issue and you can get back to coding. Feel free to ask me if you need more help with any of this! :)

Garrett