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

Hot problem!
This exception has a lot of traffic. You can help 24 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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by user2546419
, 1 year ago
The current thread must have a looper!
via Xamarin Bugzilla by t.brand, 1 year ago
The current thread must have a looper!
java.lang.IllegalStateException: The current thread must have a looper!
at android.view.Choreographer$1.initialValue(Choreographer.java:96)
at java.lang.ThreadLocal$Values.getAfterMiss(ThreadLocal.java:460)
at java.lang.ThreadLocal.get(ThreadLocal.java:65)
at android.view.Choreographer.getInstance(Choreographer.java:192)
at android.animation.ValueAnimator$AnimationHandler.(ValueAnimator.java:656)
at android.animation.ValueAnimator$AnimationHandler.(ValueAnimator.java:631)
at android.animation.ValueAnimator.getOrCreateAnimationHandler(ValueAnimator.java:1453)
at android.animation.ValueAnimator.cancel(ValueAnimator.java:1057)
at android.animation.AnimatorSet.cancel(AnimatorSet.java:335)
at android.animation.StateListAnimator.cancel(StateListAnimator.java:192)
at android.animation.StateListAnimator.setState(StateListAnimator.java:176)
at android.view.View.drawableStateChanged(View.java:15988)
at android.view.View.refreshDrawableState(View.java:16032)
at android.view.View.setEnabled(View.java:6724)
at android.widget.TextView.setEnabled(TextView.java:1446)
at com.example.username.nic_volley.MainActivity$3.getParams(MainActivity.java:133)
at com.android.volley.Request.getBody(Request.java:397)
at com.android.volley.toolbox.HurlStack.addBodyIfExists(HurlStack.java:236)
at com.android.volley.toolbox.HurlStack.setConnectionParametersForRequest(HurlStack.java:210)
at com.android.volley.toolbox.HurlStack.performRequest(HurlStack.java:106)
at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:93)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:105)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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