Command failed with Exit code ENOENT

Asked

Viewed 612 times

0

I was converting to apk normally but stopped and started giving this error I looked already added the path c: windows system32 to the path and still was not, already 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\06-12-18\App\myApp\platforms\android\gradlew.bat cdvBuildDebug -b C:\Users\pc\Downloads\IONIC\Backup\06-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\06-12-18\App\myApp\platforms\android\gradlew.bat cdvBuildDebug -b C:\Users\pc\Downloads\IONIC\Backup\06-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\06-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)

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

  • How are your environment variables configured? Could you provide us with a print ?

  • Yes I can, I’ll put it up.

  • JAVA_HOME is with a ; before and has several other variables on the same line that should be divided, such as %PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tolls. I believe that every ; should be a different variable

1 answer

0


I will explain to you in a brief and easy-to-understand form :

In system variables, Path folder you need to have :

  1. Path to Node/js
  2. Path to sdk/tools
  3. Camino del Gradle

Still in system variables, you need to create some variables in that same way:

  1. JAVA_HOME : the path of your jdk

  2. ANDROID_HOME : the path of the sdk

  3. GRADLE_HOME : the path of Gradle

    Try this.

  • I already have everything installed, but I will check again everything, maybe download a project just to test.

  • A tip I give you : make a blank project, after that, try to build. If all goes well, it is a sign that the error is not in the environment variables.

  • 1

    Vlw ai man but it didn’t work later I will try on another computer vlw by help.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.