2

I was following these directions to get the emulator working in Android Studio in Ubuntu Linux. Step 8 says:

  1. Add the emulator command line options.

    i. In Android Studio, go to Run > Edit Configurations.
    ii. To set as global default for all projects, select "Android Application" under "Defaults".
    iii. Go to the emulator tab, check "Additional command line options" and add:

    -qemu -m 2047 -enable-kvm
    

But I don't see an emulator tab. Did something change? Where do I add the additional command line options?

enter image description here

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393

1 Answers1

3

This bug report indicates that this was removed on purpose but no alternative way to enter these settings was provided.

This answer seems to provide a workaround. This worked for me but beware that you'll need to specify the same amount of memory as for the AVD in the script, so this might not work for you if you have more than one AVD for testing. C.f. the emulator command line options.

Community
  • 1
  • 1
Fabian Streitel
  • 2,702
  • 26
  • 36
  • Hey I am following the same source as in the question, and I am not able to perform this command: LD_LIBRARY_PATH=/home/chinkysight/Sdk/tools/lib64 ./emulator64-x86 -avd Pixel_C_API_R_Tablet_ -qemu -m 2047 -enable-kvm bash: ./emulator64-x86: No such file or directory – The Chinky Sight May 19 '20 at 02:32