I am following Phonegap official tutorial. I have downloaded Phonegap android base project and now I am trying to add plugins to "Hello World"
app but it's throwing below error
Command line error:
D:\cordova-android-master\bin\HybridAndroidApp>plugman install --platform android --project . --
plugin cordova-plugin-device
Installing "cordova-plugin-device" for android
ANDROID_HOME=C:\Users\admin\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101\
Failed to install 'cordova-plugin-device':CordovaError: Requirements check failed for JDK 1.8 or greater at D:\cordova-android-master\bin\HybridAndroidApp\cordova\lib\check_reqs.js:278:19
I have updated JDK to 1.8 also set it in System Environment variable
There was some problem in cordova-android base project I have followed steps from this link And I am able to add plugins.
来源:https://stackoverflow.com/questions/39994309/how-to-install-cordova-plugin-whitelist-from-command-line