繁体   English   中英

无法安装PhoneGap插件

[英]Can't install PhoneGap plugin

我正在使用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

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

我看过代码,此插件不适用于phonegap 3.2.0。 查找其他插件或尝试重构代码。 这是另一个回购,以及如何将代码改编为cordova> 3

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

暂无
暂无

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

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