Issue
I am trying to build my ionic project, but I get the following errors:
error: package android.content.res does not exist
error: package org.json does not exist
Does anyone know how to solve it? Thanks.
Solution
It may be because some of your plugins are still using an old version of cordova/gradle plugins, or you didn’t updated cordova/gradle plugin of your app.
You may try:
- Remove these cordova plugins and switch to their corresponding versions of the capacitor version your are using.
- Another way, if you prefer you may upgrade/downgrade your Capacitor
version to be compatible with the plugins your are using..
Answered By – Everton Costa
This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0