I updated Android Studio to the last version (3.1 Canary 8) and mandatorily the com.android.tools.build:gradle to version 3.1.0-alpha08, but syncing the project I get this error
For the sake of the knowledge ;) I fixed it by adding google() above jcenter() in the repositories block as suggested by the official documentation: developer.android.com/studio/build/index.html