java.lang.IllegalStateException: Must be called from the main thread. Was: Thread[RxIoScheduler-2,5,main]

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 Stack Overflow by Dev
, 1 year ago
Must be called from the main thread. Was: Thread[RxIoScheduler-2,5,main]
via Stack Overflow by Sven
, 1 year ago
Must be called from the main thread. Was: Thread[RxCachedThreadScheduler-1,5,main]
via Stack Overflow by EGHDK
, 1 year ago
Must be called from the main thread. Was: Thread[RxIoScheduler-2,5,main]
java.lang.IllegalStateException: Must be called from the main thread. Was: Thread[RxIoScheduler-2,5,main]
at com.jakewharton.rxbinding.internal.Preconditions.checkUiThread(Preconditions.java:35)
at com.jakewharton.rxbinding.support.v7.widget.SearchViewQueryTextChangesOnSubscribe.call(SearchViewQueryTextChangesOnSubscribe.java:18)
at com.jakewharton.rxbinding.support.v7.widget.SearchViewQueryTextChangesOnSubscribe.call(SearchViewQueryTextChangesOnSubscribe.java:10)

Users with the same issue

13 times, 1 year ago

Write tip

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