Old cordova App migration to Capacitor

I’m migrating my cordoma angular app to Capacitor but I have build issues on Windows/Android Platform.

First error is:
src\main\java\org\apache\cordova\whitelist\WhitelistPlugin.java:63: error: cannot find symbol
allowedRequests = new Whitelist();

I’d like to remove all ordova plugins… is it a best practice?

I’m worried because in my package.json file there are several cordova plugins:

   "cordova-android": "^11.0.0",
    "cordova-launch-review": "^4.0.1",
    "cordova-plugin-androidx": "^3.0.0",
    "cordova-plugin-androidx-adapter": "^1.1.3",
    "cordova-plugin-app-version": "^0.1.14",
    "cordova-plugin-applepay": "^5.0.0",
    "cordova-plugin-device": "^2.1.0",
    "cordova-plugin-globalization": "^1.11.0",
    "cordova-plugin-google-analytics": "^1.9.1",
    "cordova-plugin-googleplus": "^8.5.2",
    "cordova-plugin-idfa": "^3.0.0",
    "cordova-plugin-inappbrowser": "^5.0.0",
    "cordova-plugin-ionic-keyboard": "^2.2.0",
    "cordova-plugin-ionic-webview": "^5.0.0",
    "cordova-plugin-sign-in-with-apple": "^0.1.2",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-support-android-plugin": "~2.0.4",

What is the fast best practice?


It’s not a good practise to remove all plugins because your app will stop working if you have all those plugins installed now and you just remove them.

The ones you can remove are

  • cordova-plugin-androidx
  • cordova-plugin-androidx-adapter
  • cordova-plugin-ionic-keyboard
  • cordova-plugin-ionic-webview
  • cordova-plugin-splashscreen
  • cordova-plugin-whitelist
  • cordova-support-android-plugin

If you have code for showing/hiding the splash screen you’ll have to replace it with @capacitor/splash-screen plugin and it’s code.

cordova-plugin-statusbar won’t work on iOS, so better replace it with @capacitor/statusbar plugin for both iOS and Android.

1 Like

Thankyou. I’ll try.


Not build. I think that the problem is capacitor stripe

2 files found with path 'org/bouncycastle/x509/CertPathReviewerMessages_de.properties'.
Adding a packagingOptions block may help, please refer to
for more information