我刚从
切换classpath 'com.google.gms:google-services:3.1.1'
到
classpath 'com.google.gms:google-services:3.2.0'
在Android Studio中,我的构建失败,出现以下异常:
Caused by: java.lang.StackOverflowError
at org.gradle.api.internal.DefaultDomainObjectCollection.isEmpty(DefaultDomainObjectCollection.java:246)
at org.gradle.api.internal.CompositeDomainObjectSet$DomainObjectCompositeCollection.isEmpty(CompositeDomainObjectSet.java:172)
at org.gradle.api.internal.CompositeDomainObjectSet.iterator(CompositeDomainObjectSet.java:111)
at org.gradle.api.internal.DelegatingDomainObjectSet.iterator(DelegatingDomainObjectSet.java:106)
at org.gradle.api.internal.CompositeDomainObjectSet$DomainObjectCompositeCollection.iterator(CompositeDomainObjectSet.java:201)
at org.gradle.api.internal.SetIterator.of(SetIterator.java:34)
at org.gradle.api.internal.CompositeDomainObjectSet.iterator(CompositeDomainObjectSet.java:114)
at org.gradle.api.internal.DelegatingDomainObjectSet.iterator(DelegatingDomainObjectSet.java:106)
at org.gradle.api.internal.CompositeDomainObjectSet$DomainObjectCompositeCollection.iterator(CompositeDomainObjectSet.java:201)
at org.gradle.api.internal.SetIterator.of(SetIterator.java:34)
at org.gradle.api.internal.CompositeDomainObjectSet.iterator(CompositeDomainObjectSet.java:114)
at org.gradle.api.internal.DelegatingDomainObjectSet.iterator(DelegatingDomainObjectSet.java:106)
at org.gradle.api.internal.CompositeDomainObjectSet$DomainObjectCompositeCollection.iterator(CompositeDomainObjectSet.java:201)
at org.gradle.api.internal.SetIterator.of(SetIterator.java:34)
at org.gradle.api.internal.CompositeDomainObjectSet.iterator(CompositeDomainObjectSet.java:114)
at org.gradle.api.internal.DelegatingDomainObjectSet.iterator(DelegatingDomainObjectSet.java:106)
at org.gradle.api.internal.CompositeDomainObjectSet$DomainObjectCompositeCollection.iterator(CompositeDomainObjectSet.java:201)
at org.gradle.api.internal.SetIterator.of(SetIterator.java:34)
at org.gradle.api.internal.CompositeDomainObjectSet.iterator(CompositeDomainObjectSet.java:114)
at org.gradle.api.internal.DelegatingDomainObjectSet.iterator(DelegatingDomainObjectSet.java:106)
at com.google.gms.googleservices.GoogleServicesPlugin.getAllDependencies(GoogleServicesPlugin.groovy:267)
at com.google.gms.googleservices.GoogleServicesPlugin.getAllDependencies(GoogleServicesPlugin.groovy:274)
at com.google.gms.googleservices.GoogleServicesPlugin.getAllDependencies(GoogleServicesPlugin.groovy:274)
at com.google.gms.googleservices.GoogleServicesPlugin.getAllDependencies(GoogleServicesPlugin.groovy:274)
当我从命令行构建或从构建文件中删除
时,构建也很成功apply plugin: 'com.google.gms.google-services'
作为旁注:我也使用版本12.0.0的谷歌地图和firebase产品,如崩溃和分析。此外,该项目采用基本功能和多个子功能构建,如https://developer.android.com/topic/instant-apps/getting-started/structure.html
中所述知道可能出现的问题以及解决方法吗?
答案 0 :(得分:9)
Google Play服务插件的版本3.2.1
已修复此问题。