2

我做了什么......

Cordova 在 PushPlugin.java 中抱怨“cordova 无法解决”......以及其他几个错误......

(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

在此处输入图像描述

我已通过 Project >> Properties >> JAVA Build Path >> Add Jar Files 将 cordova-2.7.0 项目添加到类路径中

我也跑过...项目>>清洁

似乎无法弄清楚这一点......已经好几天了,很多谷歌搜索。

最好的问候,约翰 错误

4

2 回答 2

1

查看最新提交:NetMatch:PushPlugin github

看起来这个人在清理最近 Cordova 版本的插件方面做得很好。仍在等待 PushPlugin 回购以接受拉取请求。

于 2013-05-21T20:21:37.087 回答
0

我正在对Cordova 2.7.0 中的ChildBrowser 插件的类似问题进行故障排除。在插件类声明中将扩展插件更改为扩展 CordovaPlugin消除了我的“cordova 无法解决”错误。看看以下更改是否适合您:

public class PushPlugin extends Plugin {

至:

public class PushPlugin extends CordovaPlugin {
于 2013-05-16T23:01:09.497 回答