Android Build Tools Path Incorrectly Output on Windows

When you are working with an Android Studio basis for your SDK (ANDROID_HOME) environment variable in Windows the commands that are executed through CommandUtils.Run target

C:\Windows\system32\cmd.exe C:\Program Files (x86)\Android\android-studio\sdk\platform-tools\adb.exe

However this path is invalid (due to spaces in the path name.) It should utilize the following:

"C:\Windows\system32\cmd.exe" "C:\Program Files (x86)\Android\android-studio\sdk\platform-tools\adb.exe"

This should ensure proper execution of the binaries in both locations regardless of system configuration or setup. Additionally this issue effects calls to uninstall on exception which follow from this error which happens when “Launching” to an Android device.

Hello,

Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes.

If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, please submit a new report for it.

Thank you.