Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio error - Cannot read property 'update' of undefined

Emulator error

emulator: INFO: QtLogger.cpp:68: Critical: Uncaught TypeError: Cannot read property 'update' of undefined (qrc:/html/js/location-mock-web-channel.js:130, (null))
like image 594
Chester Avatar asked Dec 12 '19 06:12

Chester


2 Answers

If you're trying to build your app to an emulated Android device, it might need to be cold-booted. Go to Tools -> AVD Manager, and on the Virtual Device you're trying to use, click the drop-down arrow to the far right and select "Cold Boot Now".

Give the emulator a few moments to start, and if it does so without error, try building your app again and see if it now loads properly.

like image 170
pseudoku Avatar answered Nov 10 '22 08:11

pseudoku


I Spent 4 to 5 HOURS to solve this issues and tried my possible solution, but no Luck, but FINALLY, I did it from myself, So may be it will help anybody in future.

What i did :

  1. i Changed My Emulator Targeting Hardware/Phone From Pixels to Nexus 5x (Not Any Pixel hardware/Phone worked for me.
  2. i Changed System Image From R (Api Level 30) to Q (Api Level 29). And its Done!!

i am attaching some reference screenshots to better understand.

  • Selecting Hardware Image1

  • Selecting System Image, Under x86 Image Tab2

  • Final Result, After Emulator Created Sucessfully3

like image 30
Ramkesh Yadav Avatar answered Nov 10 '22 07:11

Ramkesh Yadav