Could not create service of type DaemonClient using DaemonClientServicesSupport.createDaemonClient()

Installed framework information:
npm: 6.4.1
node: 10.7.0
ionic cli: 4.2.1
Cordova: 8.1.2
Gradle: 4.6
JVM: 1.8.0_181

I tried to run android “ionic cordova run android” command but got bellow error message information:

Android Studio project detected
ANDROID_HOME=D:\AndroidSDK
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_181
studio
Subproject Path: CordovaLib
Subproject Path: app

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type DaemonClient using DaemonClientServicesSupport.createDaemonClient().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type DaemonClient using DaemonClientServicesSupport.createDaemonClient().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org
[ERROR] An error occurred while running subprocess cordova.

        cordova run android --release exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.
1 Like

Have you solved your bug?