I get this error when I try to run command ionic capacitor run android.
I tried the following steps, but I am still getting the same error.
Initially I uninstalled all the node modules and build folder from project directory and again ran the command npm install, and then followed following steps:
- Close Android Studio, if it's opened
- Go to the project workspace (Eg: C:\wheverever\it\is\TheProjectName)
- Delete .gradle folder
- Open Android Studio. Clean and build your project.
After clicking on rebuild project I'm getting an error. Can anyone help me with this?