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

Ionic2 White screen error on deploy Android 4.2.2: Use of const in strict mode(部署 Android 4.2.2 时出现 Ionic2 白屏错误:在严格模式下使用 const)
本文介绍了部署 Android 4.2.2 时出现 Ionic2 白屏错误:在严格模式下使用 const的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我可以使用 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"/>

    这篇关于部署 Android 4.2.2 时出现 Ionic2 白屏错误:在严格模式下使用 const的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

    本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

How can I use CClistview in COCOS2d Android?(如何在 COCOS2d Android 中使用 CClistview?)
cocos2d-android: how to display score(cocos2d-android:如何显示分数)
Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
Android file copy(安卓文件拷贝)
Android how to detect Copy event of Edittext in android(Android如何在android中检测Edittext的Copy事件)