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

Ashraf Rahman
Ashraf Rahman
6,111 Points

What is "E/AbstractTracker: Can't create handler inside thread that has not called Looper.prepare()"?

So i've finished the tutorial for the weather app but i keep getting the error "E/AbstractTracker: Can't create handler inside thread that has not called Looper.prepare()", why is this happening? doesn't the tutorial help with asynchronous coding? i haven't changed anything and followed the tutorial as close as possible. what can i do to solve this error. no other indication was given to help me find the exact location of this error other than the message you see.

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

Since you say you're working with on Stormy, this error message is probably because you're trying to display something from the background thread instead of the UI thread and you forgot to wrap it in a runOnUiThread() call.