C:\Users\php001>cordova create hellomobileword com.example.hello "HelloWorld"
Using detached cordova-create
Error: Path already exists and is not empty: C:\Users\php001\hellomobileword
C:\Users\php001>D:
D:\>cd phoneGap
D:\PhoneGap>cordova create hellomobileword com.example.hello "HelloWorld"
Using detached cordova-create
Creating a new cordova project.
D:\PhoneGap>cd hellomobileword
D:\PhoneGap\hellomobileword>cordova platform add android
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.example.hello
Name: HelloWorld
Activity: MainActivity
Android target: android-24
Subproject Path: CordovaLib
Android project created with cordova-android@6.0.0
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the pro
ject
Fetching plugin "cordova-plugin-whitelist@1" via npm
Installing "cordova-plugin-whitelist" for android
ANDROID_HOME=D:\PhoneGap\adt\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101
Subproject Path: CordovaLib
Observed package id 'build-tools;20.0.0' in inconsistent location 'D:\PhoneGap\a
dt\sdk\build-tools\android-4.4W' (Expected 'D:\PhoneGap\adt\sdk\build-tools\20.0
.0')
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 24].
Before building your project, you need to accept the license agreements and comp
lete the installation of the missing components using the Android Studio SDK Man
ager.
Alternatively, to learn how to transfer the license agreements from one workstat
ion to another, go to http://d.android.com/r/studio-ui/export-licenses.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 1.966 secs
Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exi
t code 1
at ChildProcess.whenDone (D:\PhoneGap\hellomobileword\platforms\android\cord
ova\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)
Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might n
eed to try adding it again. Error: Error: cmd: Command failed with exit code 1