Questions tagged [gradle.properties]
32 questions
24
votes
4 answers
Gradle build fails with Out of Memory: Java heap space error
I am getting gradle build error while running the app. I am using windows 10 with 8GB RAM, Android studio version 4.0.1
Out of memory: Java heap space. Please assign more memory to Gradle in
the project's gradle.properties file. For example, the…

Kartika Vij
- 493
- 2
- 4
- 18
15
votes
1 answer
Which file gradle.properties is higher priority?
I have local and global gradle.properties, the global one is needed to configure the proxy, but it also contains other parameters, wondering what happens if for the same settings you specify different values, which of the files will be in priority…

Jack J
- 157
- 1
- 7
11
votes
4 answers
Does gradle.properties have access to environment variables
I looked around and could not find any way of accessing environment variables in my gradle.properties.
What I can do: In my build.gradle I can access environment variables like this System.getenv("MY_VAR"). I would like to do the same in my…

Tim
- 1,606
- 2
- 21
- 42
7
votes
3 answers
How can I set org.gradle.jvmargs=-Xmx5120M in the project gradle.properties?
I'm getting this
To run dex in the process, the Gradle daemon needs a larger heap.
error and I want to add org.gradle.jvmargs=-Xmx5120M to my gradle.properties to fix this issue. However, I can't find the gradle.properties file in my project.

Ege Kuzubasioglu
- 5,991
- 12
- 49
- 85
3
votes
0 answers
Unable to get gradle.properties when running bootRun through Docker
I am trying to use a local gradle.properties file in gradle.build for my spring boot application. When running bootrun from gradle.properties, the application works as it should, but when running bootRun from a docker file i get this error:
#11…

blend
- 59
- 2
3
votes
1 answer
What is gradle.properties used for? (and using external variables)
I been developing Android apps for a while now, but came to the realization that I still don't know what the gradle.properties file is used for.
I've read a bit through the Gradle documentation which explains that you can add configurations for…

Farbod Salamat-Zadeh
- 19,687
- 20
- 75
- 125
2
votes
2 answers
Disable R8 in android app with gradle plugin 7.0 and above
I recently updated my gradle plugin, after that I was not allowed to use android.enableR8=false under my gradle.properties file. I want to disable the R8 in my app while keeping the latest gradle plugin version.
I'm facing the below error logs,…

HAXM
- 3,578
- 4
- 31
- 38
2
votes
2 answers
Gradle doesn't see gradle.properties from GRADLE_USER_HOME
CAUTION: I've read all topics with the same error but didn't found the way to fix
I've installed gradle locally on my windows PC and I try to run execute gradle clean command
C:\work\onsolve\acadia>gradle clean
Starting a Gradle Daemon (subsequent…

gstackoverflow
- 36,709
- 117
- 359
- 710
2
votes
2 answers
How do you access gradle.ext properties in Plugin Java source code?
I need a property to (one) be available when a plugin is applied and (two) allow for a calculated override value in the settings.gradle file. A project property would be ideal as it can have a default set in gradle.properties:
#…

Sooth
- 2,834
- 23
- 26
2
votes
1 answer
How to refer to gradle configuration set in gradle.properties with Kotlin DSL?
I'm trying to adopt the Kotlin Gradle DSL. I have a gradle.properties with, among other things:
slf4jVersion=2.0.0-alpha1
I declare the dependency in build.gradle.kts with:
implementation( name = "slf4j-api",
group = "org.slf4j", version =…

Travis Well
- 947
- 10
- 32
2
votes
1 answer
Prevent gradle.properties expansion
Im new in Gradle enviroment and I'm developing a Spring Application with property expansion in application.properties file, like:server.port = $ {app_server_port}
Everything is working OK, when I build with gradle build command, Gradle takes the…

Andres Sandoval
- 43
- 6
1
vote
0 answers
Running parallel gradle jobs - busy Daemons could not be reused
I'm trying to run multiple 'gradle installdebug' commands in parallel using a java program using multiple threads. Basically, this is to compile multiple pre-written android apps together in parallel as those apps are not dependent on each other.…

Elangovan Manickam
- 413
- 1
- 5
- 14
1
vote
0 answers
Could not run phased build action using connection to Gradle distribution Visual Studio Code Mac Issues
My flutter app was not working in Visual Studio Code today and I got this error:
Could not run phased build action using connection to Gradle distribution…

Ten Digit Grid
- 1,315
- 4
- 22
- 43
1
vote
1 answer
Adding permission for ml-data folder using ml-gradle
I'm using ml-gradle plugin to deploy the data and modules to a ML10 database. I have used mlModulePermissions property to set permissions for modules.
Is there a similar property to set permissions for the files loaded from ml-data directory?

Antony
- 183
- 8
1
vote
0 answers
Changing org.gradle.jvmargs Value
before a while, I was able to work on android studio project with the gradle property set to
org.gradle.jvmargs=-Xmx1536m.
suddenly now, for a reason I don't realize I Can't sync gradle files unless I set it to Xmx-1024m
so I cleaned all android…

MoutazK
- 11
- 1