facebookarchive / shimmer-android

An easy, flexible way to add a shimmering effect to any view in an Android app.
http://facebook.github.io/shimmer-android/
Other
5.31k stars 698 forks source link

Parse error The current thread must have a looper! #33

Closed huzhenjie closed 7 years ago

huzhenjie commented 7 years ago
 com.scrat.community.framework.common.BaseNetException: Unknown error
     at com.scrat.community.framework.common.BaseNetCallback.onResponse(BaseNetCallback.java:69)
     at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141)
     at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
     at java.lang.Thread.run(Thread.java:818)
E/err: 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 android.view.Choreographer$1.initialValue(Choreographer.java:91)
     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.<init>(ValueAnimator.java:600)
     at android.animation.ValueAnimator$AnimationHandler.<init>(ValueAnimator.java:575)
     at android.animation.ValueAnimator.getOrCreateAnimationHandler(ValueAnimator.java:1366)
     at android.animation.ValueAnimator.end(ValueAnimator.java:998)
     at com.facebook.shimmer.ShimmerFrameLayout.stopShimmerAnimation(ShimmerFrameLayout.java:616)
     at com.scrat.community.module.home.main.MainFragment.hideLoading(MainFragment.java:180)
     at com.scrat.community.module.home.main.MainFragment.showLoadCirclesFail(MainFragment.java:138)
     at com.scrat.community.module.home.main.MainPresenter$1.onError(MainPresenter.java:94)
     at com.scrat.community.data.callback.DefaultLoadObjCallback.onRequestFailure(DefaultLoadObjCallback.java:32)
     at com.scrat.community.framework.common.BaseNetCallback.onResponse(BaseNetCallback.java:69)
     at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141)
     at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
     at java.lang.Thread.run(Thread.java:818)
E/err: Parse error The current thread must have a looper!
 java.io.IOException: Parse error The current thread must have a looper!
     at com.scrat.community.framework.common.BaseNetCallback.onResponse(BaseNetCallback.java:72)
     at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141)
     at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
     at java.lang.Thread.run(Thread.java:818)