How do I remove the `-no-boot-anim` flag from emulator startup?

Viewed 1220

I'm using VS 15.4 preview 2 to test some things with Android 8.0. I am trying to launch (debug) my app into the AVD emulator but I just get a blank black screen in the emulator window after it opens.

I noticed that the command to open the emulator from VS output is:

2>Starting emulator AVD_Nexus_5_L26 ...
2>C:\PROGRA~2\Android\ANDROI~1\tools\emulator.EXE -partition-size 512 -no-boot-anim -avd AVD_Nexus_5_L26 -prop monodroid.avdname=AVD_Nexus_5_L26
2>Hax is enabled
2>Hax ram_size 0x80000000
2>HAX is working and emulator runs in fast virt mode.
2>emulator: Listening for console connections on port: 5554
2>emulator: Serial number of this emulator (for ADB): emulator-5554

I try running the emulator.EXE command in the CMD prompt and I get the same problem.

After changing the command to (remove -no-boot-anim flag)

C:\PROGRA~2\Android\ANDROI~1\tools\emulator.EXE -partition-size 512 -avd AVD_Nexus_5_L26 -prop monodroid.avdname=AVD_Nexus_5_L26

the emulator start up fine from the CMD prompt.

Any idea how I can remove this flag from the emulator startup when trying to debug the app from within VS? Even when I try to open the emulator manually before debugging VS still closes it and opens a new instance with the -no-boot-anim flag.

0 Answers
Related