Skip to content

Instantly share code, notes, and snippets.

@sohamtriveous
Last active February 7, 2016 14:09
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 sohamtriveous/b7bea2ab83ddeab6dd0a to your computer and use it in GitHub Desktop.
Save sohamtriveous/b7bea2ab83ddeab6dd0a to your computer and use it in GitHub Desktop.
Quick gradle config snippet to show how to work around circle ci android build memory issues. This will disable pre-dexing libraries on Circle CI while enabling it locally.
android {
dexOptions {
def filecheck = new File( 'local.properties' )
if (filecheck.exists()) {
preDexLibraries true
} else {
preDexLibraries false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment