Recently using Android Studio 3.0 Canary 3 o'clock new project encountered the error shown in the title, and found a workaround on the web. The records are as follows:
Add the following in the project's Build.gradle file to resolve.
{ jcenter() maven { url ‘https://maven.google.com‘ } }
Original article link
Https://stackoverflow.com/questions/44071080/could-not-find-com-android-tools-buildgradle3-0-0-alpha1-in-circle-ci
After studio upgrade Canary 4, when you create a new project, the project's Build.gradle file has changed to the following, and no longer has the problem.
buildscript { repositories { google() jcenter() } dependencies { classpath ‘com.android.tools.build:gradle:3.0.0-alpha4‘ // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}allprojects { repositories { google() jcenter() }}task clean(type: Delete) { delete rootProject.buildDir}
Could not find COM.ANDROID.TOOLS.BUILD:GRADLE:3.0.0-ALPHA3