Hello,
I am getting below error while apk build using “ionic cordova build android”
[ERROR] An error occurred while running cordova build android (exit code 1):
ANDROID_HOME=C:\Users\XYZ\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_31
:wrapper
BUILD SUCCESSFUL
Total time: 0.862 secs
Subproject Path: CordovaLib
FAILURE: Build failed with an exception.
* What went wrong:
Received invalid response from the daemon: 'org.gradle.launcher.daemon.protocol.ForwardInput@5b6ec132' is a
result of a type we don't have a strategy to handle. Earlier, 'Build{id=ce257caf-e024-4abd-90a8-72d733ea91d7.1,
currentDir=D:\app}' request was sent to the daemon.
Diagnostics:
No diagnostics available.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
Received invalid response from the daemon: 'org.gradle.launcher.daemon.protocol.ForwardInput@5b6ec132' is a
result of a type we don't have a strategy to handle. Earlier, 'Build{id=ce257caf-e024-4abd-90a8-72d733ea91d7.1,
currentDir=D:\app}' request was sent to the daemon.
Diagnostics:
No diagnostics available.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Below configuration I am using for app:
node : v6.9.5
npm : 3.10.10
Ionic: 3.9.1
"cordova-android": “^6.2.3”
I have tried with --stacktrace , --info and --debug options but getting same details of build failure.
Can anyone please help me to solve this error?