Gradle error *Running Gradle build - failed! - An error occurred while running subprocess capacitor

Viewed 19

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:

  1. Close Android Studio, if it's opened
  2. Go to the project workspace (Eg: C:\wheverever\it\is\TheProjectName)
  3. Delete .gradle folder
  4. Open Android Studio. Clean and build your project.

After clicking on rebuild project I'm getting an error. Can anyone help me with this?

0 Answers
Related