From d9cd399cb83c433ea9b9592bbd9d291276f224d2 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 27 Apr 2020 12:33:00 +0200 Subject: [PATCH] docs(troubleshooting): Add AndroidX information and workaround (#2832) --- site/docs-md/android/troubleshooting.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/site/docs-md/android/troubleshooting.md b/site/docs-md/android/troubleshooting.md index 16ad4ea715..b72e489309 100644 --- a/site/docs-md/android/troubleshooting.md +++ b/site/docs-md/android/troubleshooting.md @@ -39,6 +39,19 @@ That can be done easily from the File menu: ![Android Invalidate Caches](/assets/img/docs/android/invalidate-caches.png) +## Error: "package android.support.* does not exist" + +This error occurs when some Cordova or Capacitor plugin has old android support dependencies instead of using the new AndroidX equivalent. +You should report the issue in the plugin repository so the maintainers can update the plugin to use AndroidX dependencies. + +As workaround you can also patch the plugin using jetifier + +```bash +npm install jetifier +npx jetify +npx cap sync android +``` + ## Error: "Unable to load native-bridge.js. Capacitor will not function!" This error occurs when Capacitor's `native-bridge.js` file was not copied to the native project.