cordova-plugin-advanced-http doesn't work on Android #3622
-
I created an issue for this in the cordova-plugin-advanced-http project, but I'm not sure it's caused by that plugin. To summarize: I'm getting an error when I try to run my Capacitor project in Android Studio:
I googled around a bit and landed on Android's Custom Tabs Support Library. I figured I might need to add it, so I opened up apply from: 'capacitor.build.gradle' And if I go to apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
dependencies {
implementation "com.android.support:customtabs:23.2.0"
} Any idea what I need to do to get things to compile? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The problem is the safari view controller plugin, not the http plugin. You can use jetifier to patch usages of old support libraries, see https://capacitorjs.com/docs/android/troubleshooting#error-package-android-support-does-not-exist |
Beta Was this translation helpful? Give feedback.
The problem is the safari view controller plugin, not the http plugin.
Capacitor uses AndroidX dependencies, but that plugin uses an older non AndroidX dependency and that’s not possible on Android.
You can use jetifier to patch usages of old support libraries, see https://capacitorjs.com/docs/android/troubleshooting#error-package-android-support-does-not-exist