Forum Discussion

tscholze's avatar
tscholze
Iron Contributor
Feb 01, 2020
Solved

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.

 

 

  • Shibo Wei 

     

    Yes. The orignal artificats/run.bat containts a shell command that includes a port parameter.

     

    -ports 5575,5579

     

     

    If you remove this parameter, the script seems be identical to the "for VisualStudio editited" one. It works for me.

4 Replies

    • tscholze's avatar
      tscholze
      Iron Contributor

      Shibo Wei 

       

      Yes. The orignal artificats/run.bat containts a shell command that includes a port parameter.

       

      -ports 5575,5579

       

       

      If you remove this parameter, the script seems be identical to the "for VisualStudio editited" one. It works for me.

      • Shibo Wei's avatar
        Shibo Wei
        Copper Contributor

        tscholze  yes , i 've modified it . Thanks ! 

         

        would you like to help me to double check this issue : https://github.com/microsoft/surface-duo-sdk-xamarin-samples/issues/2 

         

        Thx again .

Resources