Skip to content

Instantly share code, notes, and snippets.

@tuttelikz
Created February 28, 2018 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuttelikz/5dff2faaab3ac77ef3f4aff3c9e5afb3 to your computer and use it in GitHub Desktop.
Save tuttelikz/5dff2faaab3ac77ef3f4aff3c9e5afb3 to your computer and use it in GitHub Desktop.
Found an easy and best way to build gradle go to your app >> open your gradle.properties and change few lines from it [remove #] else you may copy paste my below snippet as well
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx2048m -XX:MaxPermSize=512m
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
org.gradle.parallel=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment