PhoneGap Ripple Emulator总是报告格式错误的config.xml [英] PhoneGap Ripple Emulator always reports malformed config.xml

查看:217
本文介绍了PhoneGap Ripple Emulator总是报告格式错误的config.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有任何人有任何想法,什么可以导致板载最新版本的Chrome的Ripple仿真器(newesest版本)总是报告格式不正确或缺少配置文件( config.xml文件不能



我有我的 config.xml 现在正好在应用程序根目录(即在同一文件夹中, index.html 文件,用于启动我的移动应用程序)。我不认为它是畸形,因为 PhoneGap Bulid 构建完美的工作应用程序(虽然只在Android上测试),并没有报告任何问题,既没有配置文件也没有编译过程。 / p>

我得到这个错误不仅在我自己的配置文件,而且在任何PhoneGap应用程序,我一直在使用 - 包括:PhoneGap Hello World示例应用程序,alluny的PhoneGap开始应用程序,Sencha触摸厨房水槽演示和其他。实际上,我没有在我的本地资源中找到任何应​​用程序,这不会导致Ripple Emulator报告 config.xml 文件的问题。



当然,我按照Ripple Emulator页面上的说明设置了正确的Chrome设置,并且我打开了正确的标志,允许它通过 file:/// 协议。

解决方案

我使用当前的Ripple UI(v0.9.15),也遇到了这个问题。



对我来说,问题是由于配置文件没有在正确的位置。在我把它放在正确的位置后,Ripple在我禁用/重新启用Ripple之前无法识别它。



对我有用的是:


  1. 确保config.xml位于带有index.html的www根目录中(您目前拥有它)


  2. 重新启用Ripple


Does anyone have any idea, what can cause Ripple Emulator (newesest version) onboard newest version of Chrome to always report malformed or missing config file ("config.xml file could not be found in application's root or is malformed XML")?

I have my config.xml present exactly at application root (i.e. in the same folder, where index.html file, used to fire my mobile application). I don't think it's malformed since PhoneGap Bulid builds perfectly working applications (though tested only on Android) and does not reports any problems neither with configuration file nor with compilation process.

I'm getting this error not only on my own configuration files, but also on any PhoneGap application, that I've been working with -- including: PhoneGap Hello World example application, alluny's PhoneGap Start Application, Sencha Touch Kitchen Sink demo and others. Actually I haven't found any application in my local resources, that would not cause Ripple Emulator to report problems with config.xml file.

Of course, I set proper Chrome's settings, as instructed on Ripple Emulator page and I'm opening my Chrome with proper flag to allow it access local files via file:/// protocol.

解决方案

I am using the current Ripple UI (v0.9.15) and experienced this issue too.

For me the issue was caused by not having the config file in the right location. After I put it in the correct location, Ripple did not recognize it until I disabled/re-enabled Ripple.

What worked for me was:

  1. Make sure config.xml is in the www root with index.html (where you currently have it)
  2. Click on the green Ripple icon in the top left and disable Ripple for that page
  3. Re-enable Ripple

这篇关于PhoneGap Ripple Emulator总是报告格式错误的config.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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