Android Cordova 2.7.0 PushPlugin“;cordova无法解决”;及;“无法解决ctx”;
我所做的Android Cordova 2.7.0 PushPlugin“;cordova无法解决”;及;“无法解决ctx”;,android,apache,cordova,phonegap-plugins,Android,Apache,Cordova,Phonegap Plugins,我所做的 在cordova android bin中使用./create创建cordova项目 添加推送插件通过 将cordova-2.7.0.jar添加到/libs目录 Cordova在PushPlugin.java中抱怨“Cordova无法解决”…以及其他几个错误 (PushPlugin.java) Plugin cannot be resolved to a type (PushPlugin.java) Plugin cannot be resolved to a type (Push
- 在cordova android bin中使用./create创建cordova项目
- 添加推送插件通过
- 将cordova-2.7.0.jar添加到/libs目录
(PushPlugin.java) Plugin cannot be resolved to a type
(PushPlugin.java) Plugin cannot be resolved to a type
(PushPlugin.java) cordova cannot be resolved
(PushPlugin.java) Plugin cannot be resolved to a type
(PushPlugin.java) Plugin cannot be resolved to a type
(PushPlugin.java) ctx cannot be resolved or is not a field
(PushPlugin.java) ctx cannot be resolved
(PushPlugin.java) ctx cannot be resolved
(PushPlugin.java) ctx cannot be resolved or is not a field
(PushPlugin.java) Plugin cannot be resolved to a type
(PushPlugin.java) The method execute(String, JSONArray, String) of type PushPlugin must override or implement a supertype method
我已经通过项目>>属性>>JAVA构建路径>>添加Jar文件,将cordova-2.7.0项目添加到类路径中
我也跑过。。。项目>>清洁
我似乎无法理解这一点。。。几天过去了,谷歌搜索了很多次
向你问好,约翰
我正在对Cordova 2.7.0中的类似问题进行故障排除。在插件类声明中将扩展插件更改为扩展CordovaPlugin,消除了我端的“cordova无法解决”错误。查看以下更改是否适用于您:
public class PushPlugin extends Plugin {
致:
请参阅最新提交,网址为:
看起来这个人在清理cordova最近发布的插件方面做得很好。仍在等待PushPlugin repo接受pull请求。有关其余更改,请参见此处的答案:“执行”方法除外JSONArray参数。。。添加“data=args;”解决了数据变量问题。以下是我更新ChildBrowser的尝试(我不是Java开发人员):请参考HI obitusis,当我遇到同样的错误时,你有解决方案吗?我想你必须升级刚刚完成的从NetMatch:PushPlugin repo到我自己的PushPlugin repo,它工作得很好。
public class PushPlugin extends CordovaPlugin {