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.

Error inflating class android.support.design.widget.CoordinatorLayout

See original GitHub issue

Hi there,

ENV:

I installed capacitor-firebase-auth in a new ionic/capacitor android app and am receiving the following error when launching the app:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rff.myapp/com.rff.myapp.MainActivity}: android.view.InflateException: Binary XML file line #2 in com.rff.myapp:layout/bridge_layout_main: Binary XML file line #2 in com.rff.myapp:layout/bridge_layout_main: Error inflating class android.support.design.widget.CoordinatorLayout

There were two other errors related to androidx which I temporarily patched but I’m not sure what is going on with this one. Any ideas? Thanks in advance.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
vanfigocommented, Apr 17, 2020

Hey man, I solve that issue adding this to your build.gradle (app level)

dependencies {
   ...
    implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'

and changing your activity_main.xml tag to androidx.coordinatorlayout.widget.CoordinatorLayout

0reactions
benedictjohannescommented, May 22, 2020

So far with @capacitor/android 2.0.0 beta1 and @capacitor/core 2.0.0 beta 1, I can confirm the next branch work with Android native Google login.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error inflating class android.support.design.widget ...
Please change it into AppCompatActivity if you use Activity. Probably it becomes the error when it is Activity.
Read more >
Error inflating class android.support.design.widget ... - GitHub
I get the above error when I add this plugin to my project and try to run on an Android device and the...
Read more >
Help me fix this Android.Views.InflateException - Microsoft Q&A
I have the following error on Build: Android.Views. ... Error inflating class android.support.design.widget.CoordinatorLayout'.
Read more >
Error inflating class android.support.design.widget ... - YouTube
Android : Error inflating class android.support.design.widget.CoordinatorLayout [ Beautify Your Computer ...
Read more >
Error inflating class android.support.design.widget ... - YouTube
Android : Error inflating class android.support.design.widget.CoordinatorLayout and ClassNotFoundException: android.support.design.
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