diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_AndroidStudio.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_AndroidStudio.h index 3cfbc67118..cfe2274910 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_AndroidStudio.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_AndroidStudio.h @@ -64,7 +64,13 @@ public: const File targetFolder (getTargetFolder()); - return androidStudioExecutable.startAsProcess (targetFolder.getFullPathName()); + #if JUCE_WINDOWS + // on Windows, we have to surround the path with extra quotes, otherwise Android Studio + // will choke if there are any space characters in the path. + return androidStudioExecutable.startAsProcess ("\"" + targetFolder.getFullPathName() + "\""); + #else + return androidStudioExecutable.startAsProcess(targetFolder.getFullPathName()); + #endif } void createExporterProperties (PropertyListBuilder& props) override