update for android studio 0.3.1 and gradle 1.8.