【问题标题】:how to add(install) plugin in phonegap 3.0?如何在 phonegap 3.0 中添加(安装)插件?
【发布时间】:2013-10-21 18:35:59
【问题描述】:

我创建了新的 cordova 项目。

但我无法安装插件

我一直在使用下面的命令。

$plugman 安装 --platform android --project 。 --plugin git-wip-us.apache.org/repos/asf/cordova-plugin-device.git

并且显示了这条消息。

无法通过 git 从 URL git-wip-us.apache.org/repos/asf/cordova-plugin-dev 获取插件 ice-motion.git,输出:克隆到 'plugman-tmp1381737348287'... 致命:无法访问“git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git/”: libcurl 中不支持或禁用协议 https

我该怎么办?

请告诉我....谢谢

【问题讨论】:

    标签: android cordova phonegap-plugins


    【解决方案1】:

    我认为 plugman 适用于 2.9 或更低版本,您应该使用:

    $ 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

    【讨论】:

    • local 人。这就是我一直在寻找的! :)) 非常感谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多