简体   繁体   English

无法安装PhoneGap插件

[英]Can't install PhoneGap plugin

I'm using phonegap 3.2.0-0.17.1 And I'm trying to use this plugin: https://github.com/devgeeks/PhoneListener Which allows to capture the PhoneState intent. 我正在使用phonegap 3.2.0-0.17.1,并且正在尝试使用此插件: https : //github.com/devgeeks/PhoneListener允许捕获PhoneState意图。 I've done everything said in the installation explanation except for the adding the line to plugins.xml because I don't have this file, I found another example on the internet on how to add the plugin to config.xml using this line: <gap:plugin name="org.devgeeks.PhoneListener"/> But when I try to build the project I get this error: 除了将行添加到plugins.xml之外,我已经完成了安装说明中所述的所有操作,因为我没有此文件,我在互联网上找到了另一个示例,说明如何使用此行将插件添加到config.xml<gap:plugin name="org.devgeeks.PhoneListener"/>但是,当我尝试构建项目时,出现此错误:

[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] compiling Android...
   [error] An error occurred while building the android project.Error executing
"ant debug -f C:\Development\myfirstapp\platforms\android\build.xml":
BUILD FAILED
C:\Development\adt-bundle\sdk\tools\ant\build.xml:720: The following error occur
red while executing this line:
C:\Development\adt-bundle\sdk\tools\ant\build.xml:734: Compile failed; see the c
ompiler error output for details.

Total time: 3 seconds

Anybody knows what is the solution for this issue? 有人知道该问题的解决方案是什么?

I have looked the code and this plugin is not adapted to work in phonegap 3.2.0. 我看过代码,此插件不适用于phonegap 3.2.0。 Find for another plugin or try to refactor the code. 查找其他插件或尝试重构代码。 This is an other repo and how adapt the code for cordova > 3 这是另一个回购,以及如何将代码改编为cordova> 3

https://github.com/madeinstefano/PhoneStateChangeListener/issues/3 https://github.com/madeinstefano/PhoneStateChangeListener/issues/3

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

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