错误:试图之前“deviceready'调用cordova.exec()。忽略 [英] ERROR: Attempting to call cordova.exec() before 'deviceready'. Ignoring

查看:446
本文介绍了错误:试图之前“deviceready'调用cordova.exec()。忽略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想的PhoneGap(1.7.0)一个jQuery移动应用(1.1.0),我要创建一个Android应用程序。不过,我不断收到以下警告消息。

I'm trying to "PhoneGap" (1.7.0) a jQuery Mobile app (1.1.0) I have to create an Android app. However, I keep getting the following alert message.

ERROR: Attempting to call cordova.exec() before 'deviceready'. Ignoring.

这看起来好像这个我改变页面(其他城市例如index.1.htm到index.2.htm)

It appears as if this I change pages (change for example index.1.htm to index.2.htm)

我不会在我的应用科尔多瓦功能的任何电话 - 这是纯粹的JQM

I'm not making any calls to Cordova functions in my app - it's pure JQM.

任何想法是什么问题。或者,做不到这一点,没有人知道为什么cordova.exec()可能会在$就请求过程中被调用?

Any ideas what the problem is. Or, failing that, does anyone know why cordova.exec() might be called during an $.ajax request?

我的Andr​​oid 4.0.3下运行的应用程序,在一个虚拟设备/模拟器。也可以尝试在Android 2.1的运行,2.33仿真设备,得到这个同样的错误!

I'm running the app under Android 4.0.3, in a virtual device/simulator. Also try to run at Android 2.1, and 2.33 simulator device, getting this same error!

推荐答案

确保您使用的是科尔多瓦-1.x.0.js(或phonegap.js)相应版本的

Ensure that you are using the appropriate version of cordova-1.x.0.js (or phonegap.js)

每个平台使用不同版本的文件。

Each platform uses a different version of the file.

此错误有时来了就意味着你在Android应用程序中使用iOS版本。

This error coming up sometimes can mean you're using the iOS version in an Android application.

这篇关于错误:试图之前“deviceready'调用cordova.exec()。忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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