I' am working on React Native technology and everything was working fine until yesterday and today when I opened react-native project in the android studio it gave me this error:
Error:Could not find method getCompileConfiguration() for arguments [] on object of type com.android.build.gradle.internal.api.ApplicationVariantImpl.
Please help me out with the best solution to resolve this issue.
Thanks
I think this is due to com.google.gms:google-services
released a new version that is not compatible with the gradle build tools, to fix it I changed android/build.gradle
dependencies {
- classpath 'com.android.tools.build:gradle:2.2.+'
- classpath 'com.google.gms:google-services:3.+'
+ classpath 'com.android.tools.build:gradle:2.2.3'
+ classpath 'com.google.gms:google-services:3.2.1'
}
To use strict versions, as per the docs here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.