PhoneGap Ripple Emulator始终报告格式错误的config.xml

时间:2023-01-13 07:29:34

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")?

有没有人有任何想法,什么可以导致Ripple Emulator(newesest版本)板载最新版本的Chrome总是报告格式错误或缺少配置文件(“在应用程序的根目录中找不到config.xml文件或格式错误的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.

我的config.xml完全出现在应用程序根目录下(即在同一文件夹中,index.html文件,用于触发我的移动应用程序)。我不认为它是错误的,因为PhoneGap Bulid构建了完美的工作应用程序(虽然仅在Android上测试),并且不会报告配置文件和编译过程中的任何问题。

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.

我不仅在我自己的配置文件上,而且在我一直在使用的任何PhoneGap应用程序上收到此错误 - 包括:PhoneGap Hello World示例应用程序,alluny的PhoneGap启动应用程序,Sencha Touch Kitchen Sink演示以及其他。实际上我没有在我的本地资源中找到任何应​​用程序,这不会导致Ripple Emulator报告config.xml文件的问题。

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.

当然,我按照Ripple Emulator页面上的说明设置了正确的Chrome设置,我正在打开带有正确标记的Chrome,以允许它通过file:/// protocol访问本地文件。

3 个解决方案

#1


8  

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

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

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.

对我来说,问题是由于没有在正确的位置配置文件引起的。在我把它放在正确的位置之后,在我禁用/重新启用Ripple之前,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. 确保config.xml位于带有index.html的www根目录中(您当前拥有它)
  3. Click on the green Ripple icon in the top left and disable Ripple for that page
  4. 单击左上角的绿色Ripple图标,然后禁用该页面的Ripple
  5. Re-enable Ripple
  6. 重新启用Ripple

#2


4  

Just solved this problem, here's what I had to do:

刚刚解决了这个问题,这就是我必须做的事情:

  1. Transfer the config.xml to my root path (same path as the index.html file)
  2. 将config.xml传输到我的根路径(与index.html文件相同的路径)
  3. Transfer the /res folder as well or edit all the .XML entries to point to the right paths.
  4. 同时传输/ res文件夹或编辑所有.XML条目以指向正确的路径。
  5. Disable Ripple and then Re-Enable.
  6. 禁用纹波,然后重新启用。

#3


3  

It took me awhile to get the switch working, but opening Chrome with the --allow-file-access-from-files switch is the solution.

我需要一段时间才能使交换机正常工作,但使用--allow-file-access-from-files开关打开Chrome是一种解决方案。

#1


8  

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

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

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.

对我来说,问题是由于没有在正确的位置配置文件引起的。在我把它放在正确的位置之后,在我禁用/重新启用Ripple之前,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. 确保config.xml位于带有index.html的www根目录中(您当前拥有它)
  3. Click on the green Ripple icon in the top left and disable Ripple for that page
  4. 单击左上角的绿色Ripple图标,然后禁用该页面的Ripple
  5. Re-enable Ripple
  6. 重新启用Ripple

#2


4  

Just solved this problem, here's what I had to do:

刚刚解决了这个问题,这就是我必须做的事情:

  1. Transfer the config.xml to my root path (same path as the index.html file)
  2. 将config.xml传输到我的根路径(与index.html文件相同的路径)
  3. Transfer the /res folder as well or edit all the .XML entries to point to the right paths.
  4. 同时传输/ res文件夹或编辑所有.XML条目以指向正确的路径。
  5. Disable Ripple and then Re-Enable.
  6. 禁用纹波,然后重新启用。

#3


3  

It took me awhile to get the switch working, but opening Chrome with the --allow-file-access-from-files switch is the solution.

我需要一段时间才能使交换机正常工作,但使用--allow-file-access-from-files开关打开Chrome是一种解决方案。