Skip to content

Android Studio Emulator

Apuru edited this page Jul 29, 2021 · 2 revisions

This is the guide for setting up Android Studio Emulator to run GFL and WAI2K. This emulator is more technically involved and those who want easier solution should look into third party emulators. This still remains to be the gold standard for WAI2K development work.


Download and install Android Studio from Google. Android Studio might complain about some path issue, you need to install any SDK preferably the latest. You can do this in the SDK Manager.

  1. On the startup menu of Android Studio, click Configure>AVD Manager

  2. On the lower left corner of AVD Manager, click Create Virtual Device

  3. On the Phone preset screen, click the Pixel 3 preset

  4. Click Next, select Android 11 x86, download if necessary

  5. Click Next, now you should be able to switch to advanced Settings. Things to be done here:

    • Switch to landscape Mode (Resolution has to be 2160x1080)
    • Uncheck Device Frame
    • Assign some more RAM ( ~2.5GB works best so far, emulator supports max 4GB)
    • Assign some more Internal Storage ( 40GB+, depending on how big GFL installation gets )
  6. Click Finish to create your Device.

Configuration file should now look somewhat like this:

    AvdId=Pixel_3
    PlayStore.enabled=true
    abi.type=x86
    avd.ini.displayname=Pixel 3 API
    avd.ini.encoding=UTF-8
    disk.dataPartition.size=40544M
    fastboot.chosenSnapshotFile=
    fastboot.forceChosenSnapshotBoot=no
    fastboot.forceColdBoot=no
    fastboot.forceFastBoot=yes
    hw.accelerometer=yes
    hw.arc=false
    hw.audioInput=yes
    hw.battery=yes
    hw.camera.back=virtualscene
    hw.camera.front=emulated
    hw.cpu.arch=x86
    hw.cpu.ncore=4
    hw.dPad=no
    hw.device.hash2=
    hw.device.manufacturer=Google
    hw.device.name=pixel_3
    hw.gps=yes
    hw.gpu.enabled=yes
    hw.gpu.mode=auto
    hw.initialOrientation=landscape
    hw.keyboard=yes
    hw.lcd.density=440
    hw.lcd.height=1080
    hw.lcd.width=2160
    hw.mainKeys=no
    hw.ramSize=2536
    hw.sdCard=yes
    hw.sensors.orientation=yes
    hw.sensors.proximity=yes
    hw.trackBall=no
    image.sysdir.1=system-images\android-27\google_apis_playstore\x86\
    runtime.network.latency=none
    runtime.network.speed=full
    sdcard.path=
    sdcard.size=512 MB
    showDeviceFrame=no
    skin.dynamic=yes
    skin.name=2160x1080
    skin.path=2160x1080
    tag.display=Google Play
    tag.id=google_apis_playstore
    vm.heapSize=256

You should now be able to start your emulator.

Android Studio Emulator is Slow

Intel

Check that your CPU supports virtualization and it is enabled in the BIOS then install the SDK extension for Intel HAXM in the SDK Manager. Your emulator should be running smoothly at this point.

AMD

Check that your CPU supports virtualization and it is enabled in the BIOS then follow this Guide to set up Hypervisor for Android Studio here. Read it carefully since the first step might be counter intuitive.


If you are still having problems, you can try seeking help and reporting your hardware on the discord.