java.lang.IllegalStateException: The current thread must have a looper!

Stack Overflow | user2546419 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Why is my android app giving an illegalStateException

    Stack Overflow | 7 months ago | user2546419
    java.lang.IllegalStateException: The current thread must have a looper!
  2. 0

    Android: Java Exception after some time running animation

    Xamarin Bugzilla | 2 years ago | t.brand
    java.lang.IllegalStateException: The current thread must have a looper!

    Root Cause Analysis

    1. java.lang.IllegalStateException

      The current thread must have a looper!

      at android.view.Choreographer$1.initialValue()
    2. Android Platform
      Choreographer$1.initialValue
      1. android.view.Choreographer$1.initialValue(Choreographer.java:96)
      2. android.view.Choreographer$1.initialValue(Choreographer.java:91)
      2 frames
    3. Java RT
      ThreadLocal.get
      1. java.lang.ThreadLocal$Values.getAfterMiss(ThreadLocal.java:460)
      2. java.lang.ThreadLocal.get(ThreadLocal.java:65)
      2 frames
    4. Android Platform
      TextView.drawableStateChanged
      1. android.view.Choreographer.getInstance(Choreographer.java:192)
      2. android.animation.ValueAnimator$AnimationHandler.<init>(ValueAnimator.java:656)
      3. android.animation.ValueAnimator$AnimationHandler.<init>(ValueAnimator.java:631)
      4. android.animation.ValueAnimator.getOrCreateAnimationHandler(ValueAnimator.java:1453)
      5. android.animation.ValueAnimator.cancel(ValueAnimator.java:1057)
      6. android.animation.AnimatorSet.cancel(AnimatorSet.java:335)
      7. android.animation.StateListAnimator.cancel(StateListAnimator.java:192)
      8. android.animation.StateListAnimator.setState(StateListAnimator.java:176)
      9. android.view.View.drawableStateChanged(View.java:15988)
      10. android.widget.TextView.drawableStateChanged(TextView.java:3659)
      10 frames
    5. Android v7
      AppCompatButton.drawableStateChanged
      1. android.support.v7.widget.AppCompatButton.drawableStateChanged(AppCompatButton.java:143)
      1 frame
    6. Android Platform
      TextView.setEnabled
      1. android.view.View.refreshDrawableState(View.java:16032)
      2. android.view.View.setEnabled(View.java:6724)
      3. android.widget.TextView.setEnabled(TextView.java:1446)
      3 frames
    7. com.example.username
      MainActivity$3.getParams
      1. com.example.username.nic_volley.MainActivity$3.getParams(MainActivity.java:133)
      1 frame
    8. Android-Volley Library
      NetworkDispatcher.run
      1. com.android.volley.Request.getBody(Request.java:397)
      2. com.android.volley.toolbox.HurlStack.addBodyIfExists(HurlStack.java:236)
      3. com.android.volley.toolbox.HurlStack.setConnectionParametersForRequest(HurlStack.java:210)
      4. com.android.volley.toolbox.HurlStack.performRequest(HurlStack.java:106)
      5. com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:93)
      6. com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:105)
      6 frames