How to install “cordova-plugin-whitelist” from command line

雨燕双飞 提交于 2019-12-02 05:34:43

问题


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


回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!