microsoft / surface-duo-sdk-samples

Samples for Surface Duo SDK
https://learn.microsoft.com/dual-screen/
MIT License
51 stars 14 forks source link

Cannot get Emulator to run #4

Closed dmcrider closed 4 years ago

dmcrider commented 4 years ago

I installed the Surface Duo SDK and it appears that everything installed correctly. I found the start menu shortcut for the Emulator, but when I run it, nothing happens except an icon on the taskbar briefly appears, but is gone before it fully loads. I've even run it as an administrator, and nothing happens beyond that.

I'm running Windows 10 Pro, Version 1909 OS Build 18363.592 if that helps any. I just started the process to upgrade to Windows 10 Pro to see if that works.

I am able to run the default Android Emulator with no problems, so I believe my device meets the minimum requirements to run the Emulator.

dmcrider commented 4 years ago

Turns out I installed Android Studio in a place that isn't the default install path, so the run.bat file failed to find the Android Emulator. I updated the line that starts set ANDROID_SDK_LOCATION= to be the install location of Android Studio and now it works perfectly!

dmcrider commented 4 years ago

Also, it seems like you have to start the emulator before you can use it to debug in Android Studio. Studio doesn't give me the option of running on the Duo unless the emulator is already running. Not a big issue, just something to note.

guymerin commented 4 years ago

Thanks for the feedback @dmcrider

hakonstrande commented 4 years ago

We will look into addressing this either in docs or in the installer. Thank you for the info.

ceteongvanness commented 4 years ago

Turns out I installed Android Studio in a place that isn't the default install path, so the run.bat file failed to find the Android Emulator. I updated the line that starts set ANDROID_SDK_LOCATION= to be the install location of Android Studio and now it works perfectly!

You mean change to "C:\Program Files (x86)\Android\android-sdk" for Android Studio ?

dmcrider commented 4 years ago

@ceteongvanness I installed Android Studio in my Documents folder so I updated that line to read set ANDROID_SDK_LOCATION=%UserProfile%\Documents\Android so that when run.bat sets the Emulator path a few lines below that, it comes out to be C:\Users\<USER>\Documents\Android\emulator\emulator.exe

hakonstrande commented 4 years ago

Feels like this one is ok to close.

dmcrider commented 4 years ago

Yes, that's fine.