简体   繁体   English

无法将插件添加到Android的Cordova Project 3.1

[英]Unable to add Plugin to Cordova Project 3.1 for Android

I am trying to add 'device' plugin to my project and it is failing. 我试图将“设备”插件添加到我的项目中,但失败了。

cordova plugin add org.apache.cordova.device --verbose

and I get following log: 我得到以下日志:

Calling plugman.fetch on plugin "org.apache.cordova.device"
Fetching plugin from location "org.apache.cordova.device"...
Error: Error fetching plugin: Error: connect ETIMEDOUT

I don't understand whats the problem. 我不明白是什么问题。 Do I have to add 'local'?I tried but cordova does not understand local. 我尝试添加“本地”吗?我尝试过,但是科尔多瓦不了解本地。

Any help appreciated. 任何帮助表示赞赏。

Cordova adding plugin using command line tool Cordova使用命令行工具添加插件

Before adding plugins to your application git command line tool is required. 在将插件添加到应用程序之前,需要使用git命令行工具

You could download and install git command line for Mac OS X in Git For Mac . 您可以在Git For Mac中下载并安装Mac OS X的git命令行。 For windows, Download Git on For Winows . 对于Windows,请在Winows上下载Git。 Then: git clone git://project.url.here 然后:git clone git://project.url.here

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM