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

My app has stopped working!

when ever i tries to run my app in android emulator it shows that your app has stopped.I don't know why its happening. If somebody knows then please help me.I already posted the same question but nobody replies yet.

1 Answer

Scott Junner
Scott Junner
9,010 Points

If you don't provide specific information, then you probably won't get a specific answer. So here is the most specific answer you will get with the information you have provided.

You are getting a run-time error which is causing your app to crash.

Now here's how to get a more specific answer. Next time you run the app, and every time you run the app, make sure you have the log console in AndroidStudio open and expanded. When the app crashes you will get very specific information about why the app crashed. You will need to spend some time going through that line by line to figure out which is the relevant line. It WILL be an error in the code you have written. Error messages appear in red. It will be a large section of text.

If you can't figure out what you have done wrong after that. Post the relevant error message along with a headline that gives people a clue if they can actually help you or not. Ask yourself, honestly, how does "My app is not working" help anyone to help you?