Updated Gradle files to latest versions to target latest SDK and fix deprecations

Also, it would be really nice if you could add this library to MavenCentral so it can be referenced as a Maven dependency rather than a library project with all of the source code.