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
- install
jetifier
with npm install jetifier
- Add
"postinstall": "jetifier"
this in package.json
in scripts
- Reinstall all packages
npm install
- Now try to open app
ionic cap open android
For me these steps solved, you can try this steps once…