点击状态图1会闪退
ziyouxiaozi opened this issue · 0 comments
编译的demo点击状态图1会闪退,而且图片不是动态的显示的;但是从你的网址下载的apk是动态图的,点击是不会闪退的?
这是因为什么呢?以下是报错信息:
2020-08-04 11:40:05.911 21778-21778/com.coorchice.supertextview E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.coorchice.supertextview, PID: 21778
java.lang.ClassCastException: android.graphics.drawable.VectorDrawable cannot be cast to com.coorchice.library.gifdecoder.GifDrawable
at com.coorchice.supertextview.MainActivity$5.onClick(MainActivity.java:141)
at android.view.View.performClick(View.java:7252)
at android.view.View.performClickInternal(View.java:7229)
at android.view.View.access$3500(View.java:821)
at android.view.View$PerformClick.run(View.java:27765)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7551)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)