Update build.gradle with version compatibility