当我尝试使用PhoneGap Build中的应用程序时,它似乎缺少图像。当我检查Chrome web检查器时,它也缺少脚本文件。以下是错误:
cordova.js:314 Uncaught Error: NOT_FOUND_ERR
at fileService.js:77
at fail (FileEntry.js:88)
at Object.callbackFromNative (cordova.js:295)
at <anonymous>:1:9
cordova.js:312 Error in Error callbackId: File4103
我试图用与cordova.js关联的cordova_plugins.json来解决一个错误。我在Google上找到的修补程序提到,一个空的json文件就足够了,所以我将cordova_plugins.json添加到我的公用文件夹中,其中包含一条简单的消息:
{
"msg" : "this is a dummy file that might need updating later"
}
通过添加此文件解决了404错误,但我在chrome dev控制台中获得了一个新的错误:
Uncaught TypeError: Object #<Object> ha
当我使用chrome:// to /#设备时,我得到了这个错误,但很难解决它。
No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.
(anonymous function) @ console-via-logger.js:173
(anonymous function) @ whitelist.js:23
build @ cordova.js:53
require @ cordova.js:68
localRequire @ cordo
我正试图在Android平台上使用Phonegap/Cordova构建一个混合移动应用程序。我也在这方面取得了成功:)在我的Chrome浏览器的Ripple仿真器中,该应用程序可以按需要工作。我不使用Eclipe或Android,因为模拟器不会快速加载。
我已经使用onDeviceReady事件和导航插件的振动和警报。所有这些都如预期的那样运转良好。
当开发人员控制台在Chrome中处于活动状态时,JavaScript在cordova.js中中断,出现以下错误
Uncaught ReferenceError: require is not defined
在下面一行。notification
cordova.js:1297 Uncaught Error: Module cordova-plugin-document-
viewer.SitewaertsDocumentViewer does not exist.
at addEntry (cordova.js:1297)
at Object.exports.clobbers (cordova.js:1307)
at onScriptLoadingComplete (cordova.js:1551)
at scriptLoadedCallback (cordova.js:1584)
at HTM
我有一个Ionic应用程序,在index.html文件中我有以下内容
<!-- ionic/angularjs js -->
<script src="lib/ionic/js/ionic.bundle.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js" async="false"></script>
<!-- y
我使用PhoneGap 2.9.0和SenchaTouch来开发我的安卓应用程序(targetSdkVersion 16)。
当我用Chrome启动应用程序时,我得到了这样的日志:
Falling back on PROMPT mode since _cordovaNative is missing. Expected for Android 3.2 and lower only. cordova.js:912
deviceready has not fired after 5 seconds. cordova.js:6725
Channel not fired: onCordovaConne