android - Cordova 2.7.0 PushPlugin "cordova cannot be resolved"和 "ctx cannot be resolved"

标签 android apache cordova phonegap-plugins

我做了什么......

  • 在 cordova-android bin 中使用 ./create 创建了 cordova 项目
  • 通过 cordova-plugman 添加了 PushPlugin|
  • 将 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
(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

enter image description here

我已经通过项目 >> 属性 >> JAVA 构建路径 >> 添加 Jar 文件将 cordova-2.7.0 项目添加到类路径

我也跑过...项目 >> clean

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

最好的问候,约翰 errors

最佳答案

查看最新提交:NetMatch:PushPlugin github

看起来这个人在为最近的 cordova 版本清理插件方面做得很好。仍在等待 PushPlugin 存储库接受拉取请求。

关于android - Cordova 2.7.0 PushPlugin "cordova cannot be resolved"和 "ctx cannot be resolved",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16576579/

相关文章:

android - 自动链接:map work如何

android - 在 Android 中从 sqlite 创建 Json

Apache Vhosts HTTP 和 HTTPS(两者)重定向到另一个域

apache - TortoiseSVN无法连接

java - Apache orc writer 清除内存

javascript - 在 Phonegap 中获取图像的设备独立路径

ios - FTP上传后未收到成功或错误回调

java - C 函数指针未在 Android Studio 中编译 : Gives Error "Can' t resolve type F"

java - 如何从按钮的 xml onClick View 中识别 fragment ?

android - Phonegap - 由于 vh 单元,iOS 键盘和下拉菜单 'compress' webview