Android 在windows上运行cordova应用程序后出现白色/空白屏幕,但在浏览器中一切正常

Android 在windows上运行cordova应用程序后出现白色/空白屏幕,但在浏览器中一切正常,android,windows,cordova,Android,Windows,Cordova,我创建示例cordova应用程序模板,在wwwdir中实现我的代码,在浏览器Chrome、Edge、Firefox中运行,一切正常 cordova run browser 但如果我执行 cordova run windows 项目构建成功,但我只看到白色/空白屏幕,其他什么都看不到 android构建中也存在同样的问题 这是我的配置 <?xml version='1.0' encoding='utf-8'?> <widget id="io.cordova.helloc

我创建示例cordova应用程序模板,在wwwdir中实现我的代码,在浏览器Chrome、Edge、Firefox中运行,一切正常

cordova run browser

但如果我执行

cordova run windows
项目构建成功,但我只看到白色/空白屏幕,其他什么都看不到

android构建中也存在同样的问题

这是我的配置

<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>HelloCordova</name>
    <description>
        A sample Apache Cordova application that responds to the deviceready event.
    </description>
    <author email="dev@cordova.apache.org" href="http://cordova.io">
        Apache Cordova Team
    </author>
    <content src="index.html" />
    <plugin name="cordova-plugin-whitelist" spec="1" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>
    <engine name="browser" spec="^5.0.4" />
    <engine name="windows" spec="^6.0.1" />
    <engine name="android" spec="^7.1.4" />
</widget>


HelloCordova
响应deviceready事件的Apache Cordova应用程序示例。
阿帕奇科尔多瓦团队

问题在哪里?无错误,无调试信息

如果控制台中没有错误,您可能不会像这样删除
config.xml文件中的启动屏幕

<preference name="SplashScreenDelay" value="10000" />

或者在
deviceReady
事件之后,您可以自己使用。

尝试以下操作之一:

  • 从顶部移除您的
    cordova.js
    标记(它既不在头部也不在身体内部),并将以下代码放在
    标记之前(关闭身体标记之前):
  • 
    app.initialize();
    
  • 从config.xml中删除所有三个
    引擎
    规范

  • thanx的建议,但这不是因为飞溅屏幕,我尝试了一些变种-相同result@s4urp8n看看这个,然后看看这是不是一个问题
    <script type="text/javascript" src="cordova.js"></script>
    <script type="text/javascript">
        app.initialize();
    </script>