Updated gradle build and other files to work with latest IDE, build tools, SDK version, etc.