Open sedonaguy opened 4 years ago
I was able to fix this by updating the plugin to use androidx libraries:
build.gradle:
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(':capacitor-android') implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' }
bridge_layout_main.xml: <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.getcapacitor.BridgeActivity"
<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
Hi, I was just trying to integrate your capacitor plugin into an Ionic 5 Capacitor application. But, it dies in MainActivity with this error:
Any idea what the problem might be? The gradle build files seem correct...
Regards, Robert