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
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.
proguard-rules.pro