Google+

Friday, December 4, 2020

SOLVED - "An ERROR ocurred while running subprocess cordova" with Angular 9

In this article we review how to solve the error "An ERROR ocurred while running subprocess cordova"  using Angular 9 on Ionic 5,  on an Angular Application that includes references to cordova framework, looking like this :




How to solve the error "An ERROR ocurred while running subprocess cordova"  using Angular 9 on Ionic 5 

Fortunatly, the error message contains a hint about what to do:



To solve the problem, we'll have to re-install Gradle. 
Create a new directory C:\Gradle with File Explorer.
Download Gradle and unpack the Gradle distribution ZIP into C:\Gradle using an archiver tool.


The next step is to configure your system environment, editing the "PATH" environment variable like follows :
Click on "Edit" to edit the "Path" variable, and add the following path to it:
C:\Gradle\gradle-6.5.1\bin



Next, before you try again to compile the app, CLOSE the cmd.exe console, so that it re-reads the now updated environment variables. Compile again :






That's All!!! 
Enjoy Angular.....

      by Carmel Schvartzman

כתב: כרמל שוורצמן

No comments:

Post a Comment