Cordova 2.7.0 PushPlugin“cordova无法解析”和“ctx不能被解析” [英] Cordova 2.7.0 PushPlugin "cordova cannot be resolved" and "ctx cannot be resolved"

查看:182
本文介绍了Cordova 2.7.0 PushPlugin“cordova无法解析”和“ctx不能被解析”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了什么....




  • 在cordova-android bin中使用./create创建cordova项目

  • 通过



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


    What I've done....

    • Created the cordova project using ./create in the cordova-android bin
    • Added PushPlugin via cordova-plugman
    • Added cordova-2.7.0.jar to the /libs directory

    Cordova is complaining in PushPlugin.java that "cordova cannot be resolved" ...along with several other errors...

    (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
    

    I've added the cordova-2.7.0 project to the class path via Project >> Properties >> JAVA Build Path >> Add Jar Files

    I've also ran... Project >> clean

    Can't seem to figure this one out... it's been several days and many google searches.

    Best Regards, John

    解决方案

    See the latest commit at: NetMatch:PushPlugin github

    Looks like the man did a great job at cleaning up the plugin for recent cordova releases. Still awaiting the PushPlugin repo to accept the pull request.

    这篇关于Cordova 2.7.0 PushPlugin“cordova无法解析”和“ctx不能被解析”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆