Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
adiga-maf opened this issue Jun 27, 2019 · 4 comments

Comments

@adiga-maf
Copy link

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
Copy link

lucas-ferreira-machado commented Jul 3, 2019

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'

MarcoMirisola added a commit to MarcoMirisola/Calligraphy that referenced this issue Jul 4, 2019
The new version of viewpump fixes the crash on Api 29 as InflationX#35
jbarr21 pushed a commit that referenced this issue Jul 5, 2019
The new version of viewpump fixes the crash on Api 29 as #35
@HardyInfotech
Copy link

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
Copy link

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

  • implementation 'io.github.inflationx:calligraphy3:3.1.1'
  • implementation 'io.github.inflationx:viewpump:2.0.3'

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
Copy link
Member

Thank you @AlejandroHCruz !

@chrisjenx chrisjenx pinned this issue Feb 19, 2021
@InflationX InflationX locked as resolved and limited conversation to collaborators Feb 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants