fixed template android build errors