无法分析Android应用程序模块';s渐变配置
我想使用firebase数据库,但当我点击“连接到firebase”按钮时,我遇到了这个问题。。。。 有人能帮我吗无法分析Android应用程序模块';s渐变配置,android,firebase,google-play-services,Android,Firebase,Google Play Services,我想使用firebase数据库,但当我点击“连接到firebase”按钮时,我遇到了这个问题。。。。 有人能帮我吗 Could not parse the Android Application Module's Gradle config. Resolve gradle build issues and/or resync. 我遇到了类似的问题,并发现我的项目build.gradle中的以下条目是问题的根源: compile 'com.google.api-client:google-api
Could not parse the Android Application Module's Gradle config. Resolve gradle build issues and/or resync.
我遇到了类似的问题,并发现我的项目build.gradle中的以下条目是问题的根源:
compile 'com.google.api-client:google-api-client:1.22.0'
compile 'com.google.http-client:google-http-client-gson:1.22.0'
另一种可能性是项目中的gzip可能是罪魁祸首。在项目文件夹中搜索并删除它们,让gradle为您重新同步
可能的替代解决方案:此问题与一个或多个插件有关 粘贴以下内容:
android.debug.obsoleteApi=true
到gradle.properties文件
现在进行反驳。您必须看到带有问题插件的stacktrace。
关闭此插件,同步并再次尝试连接Firebase-现在必须成功
成功连接到Firebase后,您可以返回插件,从gradle.properties文件中删除该行并重新同步。警告将再次出现,但这并不重要,因为Firebase已配置
另外,在我的例子中,我有两个问题插件:Sceneform和Crashlytics。我解决问题的方法是从应用级build.gradle中注释掉
Fabric
插件(apply plugin:'io.Fabric'
)。然后,使用firebase助手连接到firebase。连接成功后,可以取消对fabric插件的注释。我尝试了所有方法,但问题没有解决!!“gzip”到底是什么?这个文件是“google services.json”可能是罪魁祸首??gzip是压缩格式的文件,即扩展名为.gz的文件,请将com.google.gms:google services更新到最新版本,再试一次。这个解决方案适合我: