Upgraded gradle, build tools, etc.
Updated build tools script.