简体   繁体   English

我如何将Phonegap项目创建的Cordova 1.9更新为Cordova 3.1

[英]How can i update Phonegap project created cordova 1.9 to cordova 3.1

How can i update Phonegap project created in 1.9 to 3.1 correctly . 如何将1.9中创建的Phonegap项目正确更新为3.1。

I have developed a application Phonegap application with help of phonegap 1.9 jquery mobile .Which will download remote xml and parse the content and display it , and for social media sharing of data i used share.js. 我已经在phonegap 1.9 jquery mobile的帮助下开发了一个应用程序Phonegap应用程序。该应用程序将下载远程xml并解析内容并显示它,以及用于社交媒体共享数据(我使用share.js)。

Now i would like to give support to ios7 and iphone 5 . 现在我想支持ios7和iphone 5。 so need to update my current project how can i do that . 所以需要更新我当前的项目,我该怎么做。

I tried updating my project but am not getting any console. 我尝试更新项目,但没有任何控制台。 And it gives me white screen. 它给了我白色的屏幕。 Am not able to get any console .But am using lot of console to track the application flow . 无法获得任何控制台。但是正在使用大量控制台来跟踪应用程序流程。

Please help me to resolve this issue. 请帮助我解决此问题。

there are update guides, but you should follow them one by one until you reach 3.1. 有更新指南,但是您应该一个一个地遵循它们,直到达到3.1。 Maybe it's easier if you create a new 3.1 project and paste your www folder content. 如果创建一个新的3.1项目并粘贴www文件夹内容,则可能会更容易。

BTW, on phonegap 3.0 and up you have to install the plugins you need. 顺便说一句,在phonegap 3.0及更高版本上,您必须安装所需的插件。 Console is a plugin now. 控制台现在是一个插件。

If it doesn't work use the remote debuger to see where the app is crashing, and/our use this javascript: 如果它不起作用,请使用远程调试器查看应用程序崩溃的位置,和/或使用此javascript:

<script> 
window.onerror = function(message, url, linenumber) { 
    alert("JavaScript error: " + message + " on line " + linenumber + " for " + url); 
} 
</script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM