java.lang.IllegalArgumentException: You must call this method on the main thread

Hot problem!
This exception has a lot of traffic. You can help 14 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by abuddy
, 2 years ago
You must call this method on the main thread
via GitHub by tao1
, 1 year ago
You must call this method on the main thread
via Stack Overflow by Damia Fuentess
, 11 months ago
You must call this method on the main thread
via Stack Overflow by Sanjana Nair
, 1 year ago
You must call this method on the main thread
via GitHub by Will5
, 9 months ago
java.lang.IllegalArgumentException: You must call this method on the main thread
at com.bumptech.glide.util.Util.assertMainThread(Util.java:135)
at com.bumptech.glide.GenericRequestBuilder.into(GenericRequestBuilder.java:642)
at com.mgaetan89.showsrage.helper.ImageLoader.load(ImageLoader.kt:39)
at com.mgaetan89.showsrage.widget.HistoryWidgetFactory.getViewAt(HistoryWidgetFactory.kt:43)
at android.os.Binder.execTransact(Binder.java:453)

Users with the same issue

8 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.