Error: no se ha encontrado o cargado la clase principal Dorg.gradle.daemon=true


#1

C:\xampp\htdocs\ContactosGADC>ionic platform add android
Adding android project…

Creating Cordova project for the Android platform:

    Path: platforms\android
    Package: com.ionicframework.contactosgadc280966
    Name: ContactosGADC
    Activity: MainActivity
    Android target: android-24

Subproject Path: CordovaLib

Android project created with cordova-android@6.0.0

Installing “cordova-plugin-console” for android

ANDROID_HOME=C:\Users\RODRI\AppData\Local\Android\sdk

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101

Subproject Path: CordovaLib

Error: no se ha encontrado o cargado la clase principal Dorg.gradle.daemon=true

Failed to install ‘cordova-plugin-console’:Error: cmd: Command failed with exit
code 1
at ChildProcess.whenDone (C:\xampp\htdocs\ContactosGADC\platforms\android\co
rdova\node_modules\cordova-common\src\superspawn.js:169:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
Error: cmd: Command failed with exit code 1

Hola ese error me sale su ayuda porfavor xq me sale ese erro