2

I have ionic 4 cordova app. I integrated with Capacitor. Now I am trying to add Android platform and I am getting below error: Terminal image

I didn't found any relevant solution on web.

3 Answers3

1

try

npm cache verify

if this doesn't work

npm cache clean --force

Reference

Chetan Bansal
  • 1,794
  • 14
  • 18
0

It seems like you are trying to add capacitor to existing project. Try removing unsupported Cordova plugins, it should work.

Joe Mutti
  • 137
  • 1
  • 8
0

Finally I found solution to this problem. Just uninstall Cordova plugins which are not supported by Capacitor. Then Add Android. Here is the list of unsupported plugins https://capacitor.ionicframework.com/docs/cordova/known-incompatible-plugins/