How to update classpath in code using older version of Gradle?

I have downloaded and installed Gradle 2.2. My previous version was 1.0. I am using tutorial code that has Project level build.gradle set with dependencies as shown below.

dependencies {

classpath ‘com.android.tools.build:gradle:1.0.0’

Gradle synch fails with the following error:

Error:(16, 0) Gradle DSL method not found: ‘runProguard()’ Possible causes:

  • The project ‘Dimensions’ may be using a version of Gradle that does not contain the method. Open Gradle wrapper file
  • The build file may be missing a Gradle plugin. Apply Gradle plugin
  • Can someone walk me through how to fix