I updated to gradle 4.0.1 and started receiving following error
The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[15.0.4,15.0.4]], but resolves to 15.0.2. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
My project doesn't use that dependency so I searched globally for it, and it it only comes up inside
build/intermediates/lint-cache/maven.google/com/google/android/gms/group-index.xml
as this line
<play-services-measurement-base versions="15.0.0,15.0.2"/>
So I tried deleting my build folder and cleaning the project, but it regenerates it with same values :/ hence error still remains