I'm getting the following error.
Could not find method getCompileConfiguration() for arguments [] on object of type com.android.build.gradle.internal.api.ApplicationVariantImpl.
I'm getting the following error.
Could not find method getCompileConfiguration() for arguments [] on object of type com.android.build.gradle.internal.api.ApplicationVariantImpl.
I was facing similar issue and after spent some time over internet I found below solution. If you are using latest version of google-services in build.gradle then following changes need to be done :-
1) In project level build.gradle
2) In App level build.gradle
3) In gradle-wrapper.properties
distributionUrl=https://services.gradle.org/distributions/gradle-4.4-all.zip
we had the same problem... solved by upgrading gradle in gradle-wrapper.properties
and the gradle plugin in gradle.build