Android Tutorial AMD Ryzen processor & Android emulator AVD

Discussion in 'Tutorials & Examples' started by peacemaker, Apr 6, 2019.

  1. peacemaker

    peacemaker Well-Known Member Licensed User

    If you have modern processor from AMD (Ryzen) - x86-variants of AVD cannot work by default.
    Android emulator now requires the processors with a virtualization only.

    By default Intel processors are supported, but HAXM software for Intel is required also to be installed.

    But Windows 10 (even Home version) now supports the virtualization feature: Windows hypervisor platform.
    1) The virtualization feature must be enabled in BIOS (special boot via SETTINGS\UPDATE & SECURITY\RECOVERY\ADVANCED STARTUP\Reboot now...TROUBLESHOOT\ADVANCED OPTIONS\UEFI FIRMWARE SETTINGS\Restart).
    2) Windows Hypervisor Platform should be enabled in the old Control Panel among "Windows features".
    [​IMG]

    The PC must be rebooted next.
    After it the x86 emulator images work OK and as fast as on Intel with HAXM.

    IMPORTANT UPDATE: Negative effect is found: 3rd party emulators (MEMU, BlueStacks, NOX...) cannot work as they also use virtualization feature directly. So Windows Hypervisor Platform must be disabled, if 3rd party emulator is required.
     
    Last edited: Apr 7, 2019
    Erel likes this.
  2. Shelby

    Shelby Active Member Licensed User

    Interestingly when I looked into my Windows Features with my 64bit Windows 10 machine, I found that those two features are turned off. I'm using the B4A 9.00 for my projects.
     
  3. peacemaker

    peacemaker Well-Known Member Licensed User

    Yes, it's off by default.
     
  4. Shelby

    Shelby Active Member Licensed User

    OK I guess the above that you suggested doesn't apply to my machine. (Intel CPU) Perhaps you still think I should turn on the two feature settings.
     
  5. peacemaker

    peacemaker Well-Known Member Licensed User

    IMPORTANT UPDATE: Negative effect is found after this: MEMU Android Emulator now shows the error "Your CPU virtualization is disabled. Enable VT will improove 10X perfomance." REPAIR NOW button is near. But Win10 in some seconds is thrown into BSOD with "SYSTEM_SERVICE_EXCEPTION" reason!

    And MEMU troubleshooting suggests ... to switch the Windows feature virtualization off... :(
    So, not all emulators can be used at the same time.

    Utility shows that some features are not active:
    upload_2019-4-7_12-10-2.png
     
    Last edited: Apr 7, 2019
  6. rworner

    rworner Member Licensed User

    I followed the instructions and the setup went fine. The emulator starts, but I get a message stating:
    "The ADB binary found at C:\Android\platform-tool\adb.exe is obsolete and has serious performance problems with the Android Emulator. Please update to a newer version to get significantly faster app/file transfer."

    I installed the latest platform-tools package from "https://developer.android.com/studio/releases/platform-tools" but get the same error message. The emulator appears to be running, so is this message just a ghost since I am running hypervisor?
     
  7. peacemaker

    peacemaker Well-Known Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice