如何添加(安装)插件中的PhoneGap 3.0吗? [英] how to add(install) plugin in phonegap 3.0?
问题描述
我创造了新的科尔多瓦项目。
I created new cordova project.
但我不能安装的插件
我一直在使用下面的命令。
I have been using the following command.
$ plugman安装--platform的Android --project。 --plugin git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
$plugman install --platform android --project . --plugin git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
和表现出此消息。
通过失败从URL git-wip-us.apache.org/repos/asf/cordova-plugin-dev混帐获得插件
冰motion.git,输出:克隆成plugman-tmp1381737348287'...
致命的:无法访问git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git/:
HTTPS协议不支持或libcurl中禁用
failed to get the plugin via git from URL git-wip-us.apache.org/repos/asf/cordova-plugin-dev ice-motion.git, output: Cloning into 'plugman-tmp1381737348287'... fatal: unable to access 'git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git/': Protocol https not supported or disabled in libcurl
我应该怎么办?
请告诉我....谢谢
推荐答案
我觉得plugman是版本2.9或更低,而应该使用:
I think plugman is for version 2.9 or less, instead you should use:
$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
如下所示:
的http://docs.phonegap.com/en/3.0.0/guide_cli_index.md.html#The%20Command-line%20Interface
这篇关于如何添加(安装)插件中的PhoneGap 3.0吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!