Updates all templates to use the latest version of gradle and adds support for multiDexEnabled, specifying compile version, and updates repositories code. am: 134b52aa14 am: 42f0dca815
am: 3081f30ce3

Change-Id: Ib4d1a4c50199a4dec9834b01c7d4818a0c67feaa