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

GitHub | MGaetan89 | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 1043#126935960

    GitHub | 2 years ago | TomHennen
    java.lang.RuntimeException: An error occured while executing doInBackground()
  2. 0

    GitHub comment 310#70868565

    GitHub | 2 years ago | abuddy
    java.lang.IllegalArgumentException: You must call this method on the main thread
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    ImageView.setTag cannot be used for ViewHolder when root of layout

    GitHub | 2 years ago | TWiStErRob
    java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
  5. 0

    [Q] ASUS MeMO Pad Smart (ME301T) unlock - Page 3 - XDA Forums

    xda-developers.com | 2 years ago
    java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothHeadset$2@40e66a90 at android.app.LoadedApk.forgetServiceDispatcher(Load edApk.java:921) at android.app.ContextImpl.unbindService(ContextImpl. java:1460) at android.content.ContextWrapper.unbindService(Conte xtWrapper.java:484) at android.bluetooth.BluetoothHeadset$1.onBluetoothSt ateChange(BluetoothHeadset.java:234) at android.bluetooth.IBluetoothStateChangeCallback$St ub.onTransact(IBluetoothStateChangeCallback.java:5 5)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      You must call this method on the main thread

      at com.bumptech.glide.util.Util.assertMainThread()
    2. Glide
      GenericRequestBuilder.into
      1. com.bumptech.glide.util.Util.assertMainThread(Util.java:135)
      2. com.bumptech.glide.GenericRequestBuilder.into(GenericRequestBuilder.java:642)
      2 frames
    3. com.mgaetan89.showsrage
      HistoryWidgetFactory.getViewAt
      1. com.mgaetan89.showsrage.helper.ImageLoader.load(ImageLoader.kt:39)
      2. com.mgaetan89.showsrage.widget.HistoryWidgetFactory.getViewAt(HistoryWidgetFactory.kt:43)
      2 frames
    4. Android Platform
      RemoteViewsService$RemoteViewsFactoryAdapter.getViewAt
      1. android.widget.RemoteViewsService$RemoteViewsFactoryAdapter.getViewAt(RemoteViewsService.java:164)
      1 frame
    5. Android
      IRemoteViewsFactory$Stub.onTransact
      1. com.android.internal.widget.IRemoteViewsFactory$Stub.onTransact(IRemoteViewsFactory.java:85)
      1 frame
    6. Android Platform
      Binder.execTransact
      1. android.os.Binder.execTransact(Binder.java:453)
      1 frame