Binary XML file line #0: Error inflating class ImageView

后端 未结 9 683
日久生厌
日久生厌 2020-11-30 07:29

I am using Android studio 3.0
I am getting tired fixing this problem. the app does not execute it always show me this error Binary XML file line #0: Error inflating clas

9条回答
  •  借酒劲吻你
    2020-11-30 08:19

    Well in my case it was crashing in only release builds because of proguard, so after i have added this line:

    -keep class android.support.v7.widget.** { *; }
    

    in file proguard-rules.pro, the crash has been resolved.

提交回复
热议问题