fix for using as git submodule

1. upgrade gradle version
2. fix dependency support v4, the old way will cause duplicate classes
problem while use as git submodule