Updating build files to support latest version of gradle

The project now builds and runs with latest version of Android Studio.