模拟器运行正常,但应用程序显示白屏,错误如下 [英] emulator runs fine but app shows white screen, error is below

查看:50
本文介绍了模拟器运行正常,但应用程序显示白屏,错误如下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我正在遵循老师的笔记,并准备在android studio 3.6.1中运行该应用程序.模拟器运行正常,但是当我打开应用程序时,出现了白屏.在android窗口的底部,我看到以下错误.

I'm following the teacher's notes and am ready to run the app in android studio 3.6.1. The emulator runs fine but when I open the app I get a white screen. At the bottom of the android windows, I see the following error.

Emulator: emulator: INFO: QtLogger.cpp:68: Critical: Uncaught TypeError: Cannot read property 'update' of undefined (qrc:/html/js/location-mock-web-channel.js:130, (null))

我已经在该网站和Google上搜索了该问题.我试图找出这是编码问题还是与android studio有关.

I have searched this website and google for the problem. I'm trying to figure out if this is a coding problem or something to do with android studio.

此链接中我尝试过的内容... 模拟器问题

what I tried is in this link... emulator problems

任何帮助您理解该问题的帮助都将不胜感激.

Any help to understand the problem would be appreciated.

推荐答案

我最终重新安装了android系统,并再次启动了该项目,只是发现可能的解决方案是在手机上启用USB调试功能.为此,您可以转到设置-单击关于电话-多次单击版本号以启用开发人员模式.然后返回1步,然后单击开发人员模式.启用USB调试.

I eventually reinstalled android and started the project again only to find that the possible solution was to enable usb debugging on the phone. To do this you go to settings - click on about phone - click version number several times to enable developer mode. Then go back 1 step and click on developer mode. Enable usb debugging.

我认为这可以解决问题,因此,如果您遇到与我类似的问题,请尝试此操作.

I think this could have fixed the problem so if you having a similar problem to me, please try this.

这篇关于模拟器运行正常,但应用程序显示白屏,错误如下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆