I just updated my Android Studio to 3.0 canary 1. Now I am working on my existing project on Android Studio 3.0 canary 1. By default gradle:3.0.0-alpha1 is
put this code in gradle-wrapper.properties file and it will work with you
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip