NativeScript / NativeScript/nativescript-cli

Error trying to render to android (device, emulator)

未关闭
#5,348 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

I am currently getting the following error when running "tns run android --bundle.
I am developing on windows 8 laptop (64-bit).
It builds ok and copies ok to the android (device or emulator) as indicated on the line before
the error.
out.txt
out.txt

Successfully synced application org.nativescript.newApp on device emulator-5554.
Will emit event runOnDeviceStarted with data {
projectDir: 'C:\AngularNew\newApp',
deviceIdentifier: 'emulator-5554',
applicationIdentifier: 'org.nativescript.newApp'
}
System.err: An uncaught Exception occurred on "main" thread.
System.err: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function
System.err: Error: Zone already loaded.

I will appreciate any help I can get on this.
Happy to provide more details about the project if anyone wants it.

Regards,
Ezima Ugwu.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从入口点 tns run android --bundle 开始,检查附带的 out.txt 日志,以确定失败源于 CLI 还是 Android runtime。在报告的设备或模拟器上复现该错误,并跟踪 Zone already loaded 异常;部署后应用能够成功渲染即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, javascript
领域
cli, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。