Open ryanwillis opened 4 years ago
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
That worked, thanks!
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
The problem is with the layout file node_modules\capacitor-firebase-auth\android\capacitor-firebase-auth\src\main\res\layout\bridge_layout_main.xml
The problem is:
<android.support.design.widget.CoordinatorLayout>
Instead of adding dependencies try changing it to:
<androidx.coordinatorlayout.widget.CoordinatorLayout>
The photo gallery app I cloned from official Ionic Capacitor tutorial previously builds successfully. After adding this plugin, it failed building.
Like @amrittheengineer I fixed it by replacing android.support.design.widget.CoordinatorLayout
in bridge_layout_main.xml
with androidx.coordinatorlayout.widget.CoordinatorLayout
(suggested by Android Studio). However, I noticed that it is fixed in commit 5797a64. I installed this package with @ next
tag, removed Android folder and re run capacitor init
. The application now runs again, but I haven't tested the auth functionality, yet.
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.
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.