update build.gradle to be compatible with the latest android studio