Issue to try run app

Hello! I am migrating an application from ionic 3 to ionic 5 with capacitor.
After executing the command npx cap open android to open Android Studio and run the application in the emulator. I have the following problem.

I did search in many places but nothing help me really. If anyone knows how to fix it i really apreciate it

Thanks.

I don’t know exact solution for this… But you can give try… Because once i have also faced problem with android.support.v4.app.<package name> … When i tried to take new build i was getting build error…

Try this

  1. install jetifier with npm install jetifier
  2. Add "postinstall": "jetifier" this in package.json in scripts
  3. Reinstall all packages npm install
  4. Now try to open app ionic cap open android

For me these steps solved, you can try this steps once…