部署 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.1.1、4.2.2、4.4 部署到真实设备和模拟器.2.
但它总是显示一个白色屏幕并且在控制台中我可以看到错误Uncaught SyntaxError Use of const in strict mode.
这个是项目,我的系统信息是:
Cordova CLI:您已选择退出遥测.要更改此设置,请运行:cordova telemetry on.6.3.1Gulp 版本:CLI 版本 3.9.1Gulp 本地:本地版本 3.9.1离子框架版本:2.0.0-beta.11离子 CLI 版本:2.1.0离子应用程序库版本:2.1.0-beta.1ios 部署版本:1.4.0ios-sim 版本:3.1.1操作系统:Mac OS X El Capitan节点版本:v6.3.1Xcode 版本:Xcode 7.3.1 构建版本 7D1014
解决方案
可以做到这一点!!=)
对于那些来到这里的人:
- ionic 平台添加浏览器
- 离子构建浏览器
- 离子插件添加cordova-plugin-crosswalk-webview
- 从设备中删除旧应用
- 离子构建
- 离子运行安卓
当我们谈论旧手机时,不要忘记你的 config.xml 中有它
i can deploy to a real device and to a emulator using Android
4.1.1, 4.2.2, 4.4.2.
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
解决方案
Could make that work!! =)
For those who get here:
- ionic platform add browser
- ionic build browser
- ionic plugin add cordova-plugin-crosswalk-webview
- Remove the old app from the device
- ionic build
- ionic run android
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文