Couldn't find com.android.tools.build:gradle:3.0.0

Another thing for the Gradle Android plugin v3 migration: as described in the official migration guide (ضبط الإصدار  |  Android Studio  |  Android Developers), please make sure that you add google() to the repositories list in build.gradle!

In fact you’ll most likely need both google() and jcenter() right now:

To synchronize all of the answers here and elsewhere:

buildscript {
  repositories {
    google() 
    jcenter()
  }
  dependencies {
    classpath 'com.android.tools.build:gradle:3.0.0'

  } }

Make your buildscript in build.gradle look like this. It finds all of them between google and jcenter. Only one of them will not find all of the dependencies as of this answer.