gpt4 book ai didi

android - 由于 StackOverflowError,构建失败并显示 com.google.gms :google-services:3. 2.0

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:05:06 25 4
gpt4 key购买 nike

我刚从

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 产品,如 crashlytics 和分析。此外,该项目的结构包含一个基本功能和多个子功能,如 https://developer.android.com/topic/instant-apps/getting-started/structure.html 中所述。

知道可能出了什么问题以及如何解决吗?

最佳答案

此问题已在 Google Play 服务插件的 3.2.1 版本中得到修复。

关于android - 由于 StackOverflowError,构建失败并显示 com.google.gms :google-services:3. 2.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49491742/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com