We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5cebe3 commit 9afb2c0Copy full SHA for 9afb2c0
build.gradle
@@ -1,6 +1,7 @@
1
import java.nio.file.Files
2
import org.zeroturnaround.zip.ZipUtil
3
import org.apache.commons.io.FileUtils
4
+import java.util.regex.Pattern
5
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
6
7
apply plugin: 'java'
@@ -44,7 +45,7 @@ allprojects {
44
45
def fn = project.rootProject.file("local.properties")
46
if (!fn.exists()) {
47
if (System.env["ANDROID_SDK"] != null) {
- def path = System.env["ANDROID_SDK"]
48
+ def path = System.env["ANDROID_SDK"].replace(Pattern.quote(File.separator), "/")
49
fn.withWriterAppend { w ->
50
w << "sdk.dir=${path}\n"
51
}
0 commit comments