Command failed with exit code ENOENT

0

I was converting to apk normally but stopped and started to give this error I searched for already added the path c: \ windows \ system32 to path and still has not, I reinstalled and everything else and still accuses the same problem every time I give the command: ionic cordova run android.

Subproject Path: CordovaLib
Subproject Path: app

Running command: cmd "/s /c "C:\Users\pc\Downloads\IONIC\Backup-12-18\App\myApp\platforms\android\gradlew.bat cdvBuildDebug -b C:\Users\pc\Downloads\IONIC\Backup-12-18\App\myApp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m""
Command finished with error code ENOENT: cmd /s /c "C:\Users\pc\Downloads\IONIC\Backup-12-18\App\myApp\platforms\android\gradlew.bat cdvBuildDebug -b C:\Users\pc\Downloads\IONIC\Backup-12-18\App\myApp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m"
cmd: Command failed with exit code ENOENT
Error: cmd: Command failed with exit code ENOENT
    at ChildProcess.whenDone (C:\Users\pc\Downloads\IONIC\Backup-12-18\App\myApp\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
    at ChildProcess.emit (events.js:182:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)

    
asked by anonymous 11.12.2018 / 14:54

1 answer

0

I'll explain in a summarized and easy-to-understand form:

Under System variables, Path folder you need to have:

  • Node Path / js
  • sdk / tools path
  • Gradle Path
  • Still in system variables, you need to create some variables in the same way:

  • JAVA_HOME: the path of your jdk
  • ANDROID_HOME: the sdK path
  • GRADLE_HOME: the gradle path

    Try this.

  • 11.12.2018 / 16:26