Upgrade Gradle 4.0

Please reference this link for solution that worked for me.