codeestX / GeekNews

:books:A pure reading App based on Material Design + MVP + RxJava2 + Retrofit + Dagger2 + Realm + Glide
3.5k stars 826 forks source link

在minSdkVersion=17的手机上跑不起来~ #109

Open Dreamxhx opened 7 years ago

Dreamxhx commented 7 years ago

本人把你的最小支持的sdk改成15,在17的手机上跑起来直接崩溃了,6.0手机没有问题,报错如下: android.view.InflateException: Binary XML file line #10: Error inflating class com.codeest.geeknews.widget.ProgressImageView at android.view.LayoutInflater.createView(LayoutInflater.java:613) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687) at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) at android.view.LayoutInflater.inflate(LayoutInflater.java:489) at android.view.LayoutInflater.inflate(LayoutInflater.java:396) at android.view.LayoutInflater.inflate(LayoutInflater.java:352) at android.view.View.inflate(View.java:16617) at com.codeest.geeknews.base.RootFragment.initEventAndData(RootFragment.java:46)

请问是什么原因呢?

Dreamxhx commented 7 years ago

这个控件没有改过~

wangxiaofan commented 7 years ago

加载ProgressImageView动画引起的,项目中animated-vector只能在api21以上才能跑起来