Skip to content

Instantly share code, notes, and snippets.

@jasonwyatt
Created August 2, 2017 17:45
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 jasonwyatt/c1cad4bd1183b30f59eefeb912720f99 to your computer and use it in GitHub Desktop.
Save jasonwyatt/c1cad4bd1183b30f59eefeb912720f99 to your computer and use it in GitHub Desktop.
def getAaptPath = { ->
def sdkDir = android.sdkDirectory
def buildToolsDir = new File(sdkDir, "build-tools")
def versions = buildToolsDir.list()
def latestBuildToolsDir = new File(buildToolsDir, versions[-1])
return "${new File(latestBuildToolsDir, "aapt").absoluteFile}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment