I had the same problem, I closed Android Studio and opened again, I noticed that it automatically applied these changes to the following files, and everything worked fine:
build.gradle : changed the Gradle class path from:
dependencies { classpath 'com.android.tools.build:gradle:2.3.1' }
to
dependencies { classpath 'com.android.tools.build:gradle:3.0.0-alpha5' }
gradle -wrapper.properties : from
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
to
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip
Mina Samy Aug 28 '17 at 12:34 on 2017-08-28 12:34
source share