无法安装PhoneGap插件

时间:2013-12-13 20:59:48

标签: android cordova phonegap-plugins

我正在使用phonegap 3.2.0-0.17.1 我正在尝试使用此插件:https://github.com/devgeeks/PhoneListener 这允许捕获PhoneState意图。 我已经完成了安装说明中所说的所有内容,除了将行添加到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

有人知道这个问题的解决方案是什么?

1 个答案:

答案 0 :(得分:1)

我看了代码,这个插件不适合在phonegap 3.2.0中使用。查找另一个插件或尝试重构代码。 这是另一个回购以及如何调整cordova的代码&gt; 3

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