简体   繁体   English

如何从命令行安装“ cordova-plugin-whitelist”

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

I am following Phonegap official tutorial . 我正在关注Phonegap官方教程 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 我已经下载了Phonegap android基础项目,现在我正尝试将插件添加到"Hello World"应用中,但是它抛出以下错误

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 我已将JDK更新为1.8,并且还在系统环境变量中对其进行了设置

我在cordova-android基础项目遇到了一些问题,我已经按照此链接中的步骤操作,并且能够添加插件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法安装“ cordova-plugin-whitelist”:使用forcedroid命令行出错 - Failed to install 'cordova-plugin-whitelist': Error using forcedroid command line 无法安装'cordova-plugin-whitelist':错误:cmd:命令失败,退出代码为1 - Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exit code 1 继续获取:无法安装'cordova-plugin-whitelist':错误:cmd:命令失败,退出代码为1 - Keep getting: Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exit code 1 使用cordova-plugin-whitelist - Use of cordova-plugin-whitelist 找不到cordova-plugin-whitelist错误404 - cordova-plugin-whitelist Error 404 not found 由于未安装cordova-plugin-whitelist但无法安装,所以无法从android设备进行ajax调用? - Can't do ajax calls from android device because cordova-plugin-whitelist is not installed but i can't install it? Cordova添加平台:无法安装“ cordova-plugin-whitelist” CordovaError:JDK 1.8或更高版本的需求检查失败 - Cordova adding platform: Failed to install 'cordova-plugin-whitelist' CordovaError: Requirements check failed for JDK 1.8 or greater Cordova无法安装'cordova-plugin-whitelist':错误:ENOENT:没有这样的文件或目录AndroidManifest.xml - Cordova failed to install 'cordova-plugin-whitelist': Error: ENOENT: no such file or directory AndroidManifest.xml build.phonegap插件不受支持:cordova-plugin-whitelist @ 1 - build.phonegap plugin unsupported: cordova-plugin-whitelist @ 1 cordova-plugin-whitelist请求cordova iOS 4.0.0或更高版本 - cordova-plugin-whitelist request cordova iOS 4.0.0 or above
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM