Last active
February 7, 2016 14:09
-
-
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.
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
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