gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 01:53:39 26 4
gpt4 key购买 nike

我做了什么......

  • 在 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com