Forum Discussion
How to fix: Surface Duo emulator will not start after the run.bat has been edited
My scenario
I downloaded the Surface Duo emulator and I edited the run.bat as it is described in the https://docs.microsoft.com/en-us/dual-screen/android/use-emulator?tabs=windows.
My shell returned a lot of not understandable error messages. All paths were set correctly and all required Windows features were enabled.
My fix
Unfortunately I have no idea why this worked. Open the default run.bat and just remove the port parameter. This is the only change in which the VisualStudio-specific run.bat differs from the original file.
Yes. The orignal artificats/run.bat containts a shell command that includes a port parameter.
-ports 5575,5579If you remove this parameter, the script seems be identical to the "for VisualStudio editited" one. It works for me.
4 Replies
- Shibo WeiCopper Contributor
remove port parameter in run.bat?

- tscholzeIron Contributor
Yes. The orignal artificats/run.bat containts a shell command that includes a port parameter.
-ports 5575,5579If you remove this parameter, the script seems be identical to the "for VisualStudio editited" one. It works for me.