How to remove the "-no-boot-anim" flag from emulator startup?

I am using VS 15.4 preview 2 to test some things with Android 8.0. I am trying to run (debug) my application into an 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:

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 to run the emulator.EXE command at the CMD prompt and I get the same problem.

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

 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 starts normally from the CMD prompt.

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

+5
source share

Source: https://habr.com/ru/post/1271816/


All Articles