Last active
November 8, 2021 00:50
-
-
Save jmfayard/62ead66fbbf3fec801bcf5e985be5f28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // top-level build.gradle | |
| task printProperties { | |
| group = 'help' | |
| doLast { | |
| def properties = ['org.gradle.java.home', 'org.gradle.jvmargs'] | |
| def systemProperties = ['file.encoding', 'user.country', 'user.language', 'java.io.tmpdir', 'user.variant'] | |
| println("Detecting what could cause incompatible gradle daemons") | |
| println("Run './gradlew printProperties' from the command-line and the same task Android studio") | |
| println("See https://docs.gradle.org/4.1/userguide/build_environment.html") | |
| println("See https://docs.gradle.org/4.1/userguide/gradle_daemon.html#daemon_faq") | |
| println() | |
| println "JAVA_HOME=" + System.getenv("JAVA_HOME") | |
| properties.forEach { prop -> println(prop + "=" + project.findProperty(prop)) } | |
| systemProperties.forEach { prop -> println(prop + "=" + System.properties[prop]) } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // build.gradle | |
| org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8 -Duser.country=DE | |
| systemProp.file.encoding=UTF-8 | |
| systemProp.user.country=DE | |
| systemProp.user.language=en |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment