question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App crash when using com.google.android.material library

See original GitHub issue

When project uses the library: com.google.android.material, the app crashes after adding the chucker to gradle. Looks like chucker is also using the same library

android.view.InflateException: Binary XML file line #127: Binary XML file line #127: Error inflating class com.google.android.material.textfield.TextInputLayout

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
MiSikoracommented, Mar 27, 2020

Sure thing, is there a way we can exude Chucker from using the material library and instead use the project supplied one? I am using this material library:

You can force the dependency version with something like this.

allprojects {
  configurations.all {
    resolutionStrategy {
      eachDependency { details ->
        def requested = details.requested
        if (requested.group == "com.google.android.material" && requested.name == "material") {
          details.useVersion "1.1.0"
        }
      }
    }
  }
}

However, I’m also not facing the issue you describe in any of my projects that use Chucker. Can you create a small sample repo that reproduces the issue?

0reactions
vbuberencommented, Mar 30, 2020

I would like to reopen the issue till we find the actual fix. It is strange, since quite a lot of people still use AppCompat theme with Chucker without issues.

You mentioned that your app uses AppCompat. If so could you tell me how is it possible that your TextInputLayout uses style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox", while it requires the app to use Theme.MaterialComponents and would crash otherwise with an error like you have?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Closed :Android: App keeps crashing when using com.google ...
In Short, Try changing The app Theme to Theme.MaterialComponents in res/styles or avoid using its components like TextInputLayout.
Read more >
App crashes on launch with Material-1.1.0 and minifyEnabled ...
This only happens when I test it with minifyEnabled true . It works fine without minification. The crash log is at the bottom...
Read more >
Crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
Application crashes at runtime [72039872] - Visible to Public
We are seeing issues with D8, when using a library that uses Dagger. I'm seeing the following issue/error during runtime.
Read more >
App crashes with "Didn't find class "androidx.window ...
Hi team, another newbie question. I try to get the windowManager feature working. After 's awesome tip , I got it building.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found