Skip to content

Commit

Permalink
docs(troubleshooting): Add AndroidX information and workaround (#2832)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Apr 27, 2020
1 parent 4dad4a1 commit d9cd399
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions site/docs-md/android/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d9cd399

Please sign in to comment.