简体   繁体   中英

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. 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:

[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. Find for another plugin or try to refactor the code. This is an other repo and how adapt the code for cordova > 3

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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