I migrated to Android Studio 3 and Gradle 4. Then I changed compile to implementation in my build.gradle files. But I get the error:
I upgraded compileSdkVersion & targetSdkVersion to 28 and I also faced this same error.
I upgraded all the dependencies version in app.gradle to 28.0.0 and also in project .gradle file upgraded com.android.tools.build:gradle to 3.3.2
i.e classpath 'com.android.tools.build:gradle:3.3.2'
After this project synced successfully