Details
Description
When i add android platform it shows the error.
D:\workspace\cordova\CordovaProject>cordova platform add android@6.1.2
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: io.cordova.hellocordova
Name: CordovaApp
Activity: MainActivity
Android target: android-25
Subproject Path: CordovaLib
Android project created with cordova-android@6.1.2
Installing "cordova-plugin-whitelist" for android
Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exit code ENOENT
at ChildProcess.whenDone (C:\Users\user3\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at emitOne (events.js:96:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:213:12)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
Error: cmd: Command failed with exit code ENOENT
I am using android studio.
How to solve this issue? Please help me?