skip to Main Content

I’m using Android Studio 2020.3.1 Patch 2, on Windows 10 and I’m running an Android 12 emulator.

I’m attempting to simply load any webpage using Google Chrome, however all that happens is that the progress bar appears, but nothing ever loads regardless of the website that I try to load. The other thing that happens is that sometimes Chrome just sits on the loading screen itself and doesn’t finish loading when started.

I’ve verified that the emulator has internet access, and in fact I can get webpages to load using the Webview Browser Tester app that is present in the emulator by default.

Stumped with this one, any help is appreciated.

3

Answers


  1. It’s caused by vulkan. To fix it, you must turn vulkan off on emulator or chrome.

    # Here's how to disable Vulkan apps to talk to the emulator.
    
    # Add the following lines to ~/.android/advancedFeatures.ini (create this file if it doesn't exist already):
    
    Vulkan = off
    GLDirectMem = on
    

    If you want to use both vukan and chrome on emulator, just mark vulkan flag as disabled in chrome://flags and re-enable Vulkan on emulator by changing Vulkan value to on or deleting advancedFeatures.ini.

    Login or Signup to reply.
  2. This helped me to resolve my issue with Android 12 doesn’t load any webpages. I’m using Android studio Chipmunk 2021.2.1 on Windows 10 and I’m running Android 12 emulator with API31.
    What I did:

    1. Closed an emulator
    2. In a text editor (e.g Notepad++) I pasted these two lines.
    Vulkan = off
    GLDirectMem = on
    
    1. I saved the file as advancedFeatures.ini -> you can directly save it in .android file or wherever you want and then move it to .android file.
     Path example: C:/Users/your user name/.android
    
    1. Started an emulator
    Login or Signup to reply.
  3. It is also possible, to set the emulated Graphics Performance to "Software – GLES2.0" in the Virtual Device Configuration.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search