我做了什么......
- 在 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
我已经通过项目 >> 属性 >> JAVA 构建路径 >> 添加 Jar 文件将 cordova-2.7.0 项目添加到类路径
我也跑过...项目 >> clean
似乎无法弄清楚这一点......已经好几天了,谷歌搜索了很多。
最好的问候,约翰
最佳答案
查看最新提交: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/