用户登录
用户注册

分享至

部署 Android 4.2.2 时出现 Ionic2 白屏错误:在严格模式下使用 const

  • 作者: 那晚越女说我?
  • 来源: 51数据库
  • 2022-12-30

问题描述

我可以使用 Android 4.1.14.2.24.4 部署到真实设备和模拟器.2.

但它总是显示一个 white 屏幕,并且在控制台中我可以看到错误 Uncaught SyntaxError Use of const in strict mode.

But it always shows a white screen and in the console I can see the error Uncaught SyntaxError Use of const in strict mode.

这个是项目,我的系统信息是:

This is project and my system info is:

Cordova CLI: You have been opted out of telemetry. To change this, run: cordova telemetry on.
6.3.1

Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1

Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.4.0
ios-sim version: 3.1.1
OS: Mac OS X El Capitan
Node Version: v6.3.1
Xcode version: Xcode 7.3.1 Build version 7D1014 

  • https://github.com/driftyco/ionic/issues/8328
  • 推荐答案

    可以做到!=)

    对于那些到达这里的人:

    For those who get here:

    • 离子平台添加浏览器
    • 离子构建浏览器
    • 离子插件添加cordova-plugin-crosswalk-webview
    • 从设备中删除旧应用
    • 离子构建
    • 离子运行安卓

    当我们谈论旧手机时,不要忘记您的 config.xml 中有它

    As we are talking about old mobiles, dont forget you have that in your config.xml

    <preference name="loadUrlTimeoutValue" value="60000"/>

软件
前端设计
程序设计
Java相关