简体   繁体   English

NativeScript Angular:Android 主线程上发生未捕获的异常

[英]NativeScript Angular: An Uncaught Exception Occurred on main thread on android

I am new to mobile development and I am working with NativeScript and in the Android application I find this error.我是移动开发的新手,我正在使用 NativeScript,在 Android 应用程序中我发现了这个错误。

在此处输入图片说明

Here's my package.json这是我的 package.json

tns platform remove android/ios tns platform add android/ios tns run android/ios

如果没有...尝试删除您的node_modules文件夹并执行npm installnpm i

I using command我使用命令

tns run android/ios -env.aot tns 运行 android/ios -env.aot

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM