IllegalStateException:将google-services更新为3.2.0时未找到匹配项

时间:2018-04-24 16:04:37

标签: android google-play-services

我无法将我的项目更新为google-services 3.2.0。抛出异常未找到匹配项。检查下面的日志并帮助我。感谢。

注意:google-services 3.1.0同步完全没问题,问题只发生在3.2.0。

日志:

  

org.gradle.api.ProjectConfigurationException:出现问题   配置项目':app'。在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)   在java.lang.Thread.run(Thread.java:745)引起:   java.lang.IllegalStateException:找不到匹配项   java.util.regex.Matcher.group(Matcher.java:536)at   java_util_regex_MatchResult $ group.call(未知来源)at   com.google.gms.googleservices.GoogleServicesPlugin.getJsonLocations(GoogleServicesPlugin.groovy:287)   在   com.google.gms.googleservices.GoogleServicesPlugin.handleVariant(GoogleServicesPlugin.groovy:214)   在   com.google.gms.googleservices.GoogleServicesPlugin $ _setupPlugin_closure5.doCall(GoogleServicesPlugin.groovy:183)   在   com.android.build.gradle.AppExtension.addVariant(AppExtension.java:79)     在   com.android.build.gradle.internal.ApiObjectFactory.create(ApiObjectFactory.java:132)     在   com.android.build.gradle.BasePlugin.lambda $ createAndroidTasks $ 6(BasePlugin.java:760)     在   com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81)     在   com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:746)     在   com.android.build.gradle.BasePlugin.lambda为$ null $ 4(BasePlugin.java:652)     在   com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81)     在   com.android.build.gradle.BasePlugin.lambda $ createTasks $ 5(BasePlugin.java:648)

1 个答案:

答案 0 :(得分:0)

新的Fcm更新修复了此问题。 classpath' com.google.gms:google-services:4.0.1'

实施' com.google.firebase:firebase-core:16.0.0' 实施' com.google.firebase:firebase-messaging:17.0.0'