android - 外部链接无法打开 phonegap cordova android

标签 android xml cordova config

我的设置: 苹果机 Phonegap 5.0 Cordova 5.1 平台 - iOS 和 Android 安卓工作室

iOS 应用没有问题。但在安卓上我无法通过应用程序使用互联网,即无法从互联网下载任何内容。我不知道这是因为 config.xml 文件中的错误还是其他原因。

在我的 config.xml 文件中,它位于 res/xml 文件夹中,内容如下

<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    .......
    <content src="index.html" />
    <access origin="*" /> </widget>

我得到的错误是

错误:外部资源 http://www.w3.org/ns/widgets未注册

有人可以在这里取悦我吗? 5 小时以来一直在寻找解决方案,但无法获得任何有用的东西。

android也安装了白名单插件。

最佳答案

重新安装了白名单插件。 添加了 <allow-navigation href="*" /> 在 config.xml 中丢失。 瞧!它现在工作。感谢您的帮助sanat

关于android - 外部链接无法打开 phonegap cordova android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32005866/

相关文章:

c# - 在 C# 中解析 XML 文档

cordova - 如何配置我的 Google Analytics 帐户以接受来自文件 ://urls? 的请求

java - Phonegap 设备就绪事件

java - 如何在 Android appium 中水平滑动

android - 在 Android 中运行 tensorflow 模型

iphone - 为 iPhone 或 Android 开发? (作为 C# 开发人员)

android - WEBSQL 是否支持 Ice Cream Sandwich 上的 Phonegap 应用程序?

android - requestLocationUpdates 与位置监听器

javascript - 读取变量个数的子节点?

java - Android调试错误android.view.InflateException : Binary XML file line #9: Error inflating class fragment