Ionic cordova build android issues

Hi
Cordova encountered an error.
You may get more insight by running the Cordova command above directly.

An error occurred while running cordova build android (exit code 1):

ANDROID_HOME=C:\Users\Senthil\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131
Error: cmd: Command failed with exit code ENOENT

delete platform folder and try adding platform again, then build

1 Like

An error occurred while running cordova build android (exit code 1):

ANDROID_HOME=C:\Users\Senthil\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131
Error: Could not find gradle wrapper within Android SDK. Might need to
update your Android SDK.

Hi,
i have this error when build
Subproject Path: CordovaLib
Error: cmd: Command failed with exit code ENOENT

Hi,
even is set the path i got error again and again…any one give solution
Subproject Path: CordovaLib
Error: cmd: Command failed with exit code ENOENT

FAILURE: Build failed with an exception.

  • What went wrong:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the user guide chapter on the daemon at
    https://docs.gradle.org/3.3/userguide/gradle_daemon.html
    Please read the following process output to find out more:

Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap