Gradle error: could not execute build using gradle distribution

After I updated Android Studio to version 0.2.7, I got the following error: org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle distribution 'http://services.gradle...