部署 Android 4.2.2 时出现 Ionic2 白屏错误:在严格模式下使用 const
- 作者: 那晚越女说我?
- 来源: 51数据库
- 2022-12-30
问题描述
我可以使用 Android 4.1.1、4.2.2、4.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
- 离子平台添加浏览器
- 离子构建浏览器
- 离子插件添加cordova-plugin-crosswalk-webview
- 从设备中删除旧应用
- 离子构建
- 离子运行安卓
推荐答案
可以做到!=)
对于那些到达这里的人:
For those who get here:
当我们谈论旧手机时,不要忘记您的 config.xml 中有它
As we are talking about old mobiles, dont forget you have that in your config.xml
<preference name="loadUrlTimeoutValue" value="60000"/>
推荐阅读
热点文章
检查拆分键盘
0
带有“上一个"的工具栏和“下一个"用于键盘输入AccessoryView
0
Activity 启动时显示软键盘
0
UIWebView 键盘 - 摆脱“上一个/下一个/完成"酒吧
0
在 iOS7 中边缘滑动时,使键盘与 UIView 同步动画
0
我的 iOS 应用程序中的键盘在 iPhone 6 上太高了.如何在 XCode 中调整键盘的分辨率?
0
android:inputType="textEmailAddress";- '@' 键和 '.com' 键?
0
禁用 iPhone 中键盘的方向
0
Android 2.3 模拟器上的印地语键盘问题
0
keyDown 没有被调用
0
