Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+10 votes

I am trying to run my bird counting App on an emulator within Android Studio and it will no longer open my app. I get a pop-up message that says

BirdCountAssignment kept stopping.
Click for App Info
Click to Close

Has anyone else experienced this issue and know a solution?

asked in CSC490_Spring202021 by (1 point)

1 Answer

+4 votes
 
Best answer

That's happened to me a few times as well. As far as I can tell, it means that you have an error in your code that's causing the app to crash. You can try looking on the console to look for specific error messages.

If you haven't looked at it before, it's on a tool bar on the bottom of the screen. (Right next to "Database Inspector") Upon launching the app, there should also be a green speech bubble coming from it that reads "Success operation succeeded"

answered by (1 point)
selected by
+2

Yeah, I think it's called "Logcat", or at least it used to be. You can filter it to show just "error messages" and not all the warnings or other debug-level info.

The most likely culprit is your old friend, the NullPointerException (especially if you forgot to assign a value to some variable), although any other errors like IndexOutOfBounds, etc, are certainly possible as well...

...