You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[info] Java Home: C:\Program Files\Java\jdk-1.8 [info] JVM Args: --add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,-Xmx4g,-Dfile.encoding=UTF-8,-Duser.country=CN,-Duser.language=zh,-Duser.variant [info] Gradle User Home: C:\Users\CrazyAwei\.gradle [info] Gradle Version: 5.3 [error] Error getting build for c:\workSpace\sp-erp: Could not run build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-5.3-bin.zip'. Problem with provided build arguments: [--init-script, C:\Users\CRAZYA~1\AppData\Local\Temp\6a04067a73fb07ce3752317f20560b6b753f9e355f8679fa62e3e68e92af6797.gradle, -Xmx4g]. Unknown command-line option '-X'. Either it is not a valid build option or it is not supported in the target Gradle version. Not all of the Gradle command line options are supported build arguments. Examples of supported build arguments: '--info', '-p'. Examples of unsupported build options: '--daemon', '-?', '-v'. Please find more information in the javadoc for the BuildLauncher class. [info] Found 0 tasks [info] [gradle-server] [ERROR] Could not run build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-5.3-bin.zip'. Problem with provided build arguments: [--init-script, C:\Users\CRAZYA~1\AppData\Local\Temp\6a04067a73fb07ce3752317f20560b6b753f9e355f8679fa62e3e68e92af6797.gradle, -Xmx4g]. Unknown command-line option '-X'. Either it is not a valid build option or it is not supported in the target Gradle version. Not all of the Gradle command line options are supported build arguments. Examples of supported build arguments: '--info', '-p'. Examples of unsupported build options: '--daemon', '-?', '-v'. Please find more information in the javadoc for the BuildLauncher class.
Activity
crazyde21 commentedon Sep 26, 2025
if don't set "java.import.gradle.jvmArguments": "-Xmx4g"
When i run gradle build it throw OOM exception
crazyde21 commentedon Sep 26, 2025
I have to unset "java.import.gradle.jvmArguments": "-Xmx4g" until project import done, and set it again to run gradle task to build.
[-]Unknown command-line option '-X'.[/-][+]About gradle jvm args conflict probleam: Unknown command-line option '-X'.[/+][-]About gradle jvm args conflict probleam: Unknown command-line option '-X'.[/-][+]About gradle jvm args conflict problem: Unknown command-line option '-X'.[/+]fbricon commentedon Sep 26, 2025
Try adding
to your /gradle.properties
crazyde21 commentedon Sep 26, 2025
it work!!! thanks
i create it in my /Users/.gradle/gradle.properties