Skip to content

Commit 9afb2c0

Browse files
committed
use forward slash in android sdk path
1 parent c5cebe3 commit 9afb2c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import java.nio.file.Files
22
import org.zeroturnaround.zip.ZipUtil
33
import org.apache.commons.io.FileUtils
4+
import java.util.regex.Pattern
45
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
56

67
apply plugin: 'java'
@@ -44,7 +45,7 @@ allprojects {
4445
def fn = project.rootProject.file("local.properties")
4546
if (!fn.exists()) {
4647
if (System.env["ANDROID_SDK"] != null) {
47-
def path = System.env["ANDROID_SDK"]
48+
def path = System.env["ANDROID_SDK"].replace(Pattern.quote(File.separator), "/")
4849
fn.withWriterAppend { w ->
4950
w << "sdk.dir=${path}\n"
5051
}

0 commit comments

Comments
 (0)