From 305ab1a35bf6d87eacb883dc803013660c1cb2b1 Mon Sep 17 00:00:00 2001 From: kongshanshan33 <42063696+kongshanshan33@users.noreply.github.com> Date: Thu, 10 Jan 2019 03:18:40 +0800 Subject: [PATCH] Fix project directory has spaces lead to compile error when use 'flutter create -t module'command (#23817) --- .../module/android/library/include_flutter.groovy.copy.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_tools/templates/module/android/library/include_flutter.groovy.copy.tmpl b/packages/flutter_tools/templates/module/android/library/include_flutter.groovy.copy.tmpl index c5f3950922..26d060ea2d 100644 --- a/packages/flutter_tools/templates/module/android/library/include_flutter.groovy.copy.tmpl +++ b/packages/flutter_tools/templates/module/android/library/include_flutter.groovy.copy.tmpl @@ -1,6 +1,6 @@ // Generated file. Do not edit. -def scriptFile = getClass().protectionDomain.codeSource.location.path +def scriptFile = getClass().protectionDomain.codeSource.location.toURI() def flutterProjectRoot = new File(scriptFile).parentFile.parentFile gradle.include ':flutter'