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
Gloria Dwomoh
13,116 PointsYou can try "clean gradle" and restarting the emulator. If the error persists then check the logcat, it probably will show why.
Ricky Sparks
22,249 Pointscleaned project and got this
Gloria Dwomoh
13,116 PointsCan you scroll up and take a picture of the 1st error you see in the logcat ?
2 Answers
Gloria Dwomoh
13,116 PointsChange LogException to Log.e(TAG,"Exception caught: ", e);
And I said.... findViewById(R.id.ProgressBar); not... findViewById(ProgressBar)
Edit: Also can I see your manifest file? It seems that you have done changes in it.
Ricky Sparks
22,249 PointsThanks you very much :D :D :D Manifest file http://imgur.com/AO8uhnX
Gloria Dwomoh
13,116 PointsOk everything is all right there. It seems your problem is solved. Congrats!
Gloria Dwomoh
13,116 PointsCan you paste your whole main code somewhere like pastebin ,don't forget to choose highlight java, and give us the link?
Ricky Sparks
22,249 PointsGloria Dwomoh
13,116 PointsTry changing line 53 to... mProgressBar = (ProgressBar) findViewById(R.id.ProgressBar);
you wrote R.id.progressBar instead.
Ricky Sparks
22,249 PointsRicky Sparks
22,249 Points:D I added the following code: mProgressBar = (ProgressBar) findViewById(R.id.ProgressBar);
But now it gave me this error?
Gloria Dwomoh
13,116 PointsSelect import and let me know how it goes.
Ricky Sparks
22,249 PointsRicky Sparks
22,249 PointsOne more thing my app wont run in the emulator? any idea? http://imgur.com/ZdyNASO
maybe the link?