InflationX / Calligraphy

Custom fonts in Android the easy way...
Apache License 2.0
1.09k stars 83 forks source link

Crash (Error inflating class androidx.appcompat.widget.FitWindowsLinearLayout) #35

Closed adiga-maf closed 3 years ago

adiga-maf commented 5 years ago

I am facing an issue on Android Q (API 29), getting the following exception when open the app:

java.lang.RuntimeException: Unable to start activity 
     ComponentInfo{com.example.app/com.example.app.MainActivity}: 
     android.view.InflateException: Binary XML file line #17 
     in com.example.app:layout/abc_screen_simple: Binary XML file line #17 
     in com.example.app:layout/abc_screen_simple: 
         Error inflating class androidx.appcompat.widget.FitWindowsLinearLayout

I don't have neither abc_screen_simple layout nor FitWindowsLinearLayout. I tried many articles related even in old library versions but no luck. I would appreciate if you help with this.

lucas-ferreira-machado commented 5 years ago

Please update to the new viewpump version 2.0.3 in your build.gradle. It worked for me.

implementation 'io.github.inflationx:viewpump:2.0.3'

HardyInfotech commented 4 years ago

How to solve it... Please help me ...

Binary XML file line #17 in packga_name:layout/abc_screen_simple: Error inflating class androidx.appcompat.widget.FitWindowsLinearLayout

AlejandroHCruz commented 3 years ago

@HardyInfotech I can confirm this has been fixed after using:

If you need more help, consider commenting here

And also feel free of closing #53 as it's a duplicate of this issue right here.

chrisjenx commented 3 years ago

Thank you @AlejandroHCruz !