英文:
emulator runs fine but app shows white screen, error is below
问题
以下是您要翻译的内容:
"Good day to all.
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))
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."
英文:
Good day to all.
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))
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.
答案1
得分: 0
我最终重新安装了安卓系统,并重新开始了这个项目,只是发现可能的解决方法是在手机上启用 USB 调试。要做到这一点,你需要进入设置 - 点击关于手机 - 连续点击多次版本号以启用开发者模式。然后回退一步,点击开发者模式。启用 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.
专注分享java语言的经验与见解,让所有开发者获益!
评论