首页 > 解决方案 > 在 Intellij Idea 中创建了新项目,并且 gradle 同步一次又一次失败

问题描述

这是即使在 BUILD SUCCESSFULL 之后仍显示的错误

08:14 pm Gradle 同步失败:不支持的方法:AndroidArtifact.getBuildConfigFields()。您连接的 Gradle 版本不支持该方法。要解决此问题,您可以更改/升级您连接到的 Gradle 目标版本。或者,您可以忽略此异常并从模型中读取其他信息。有关更多详细信息,请参阅 IDE 日志(帮助 | 显示日志)(3 秒 678 毫秒)

这些是我添加的实现并将其连接到 Firebase

implementation 'com.google.firebase:firebase-analytics:17.4.4'
implementation 'com.google.firebase:firebase-auth:19.3.2'
implementation 'com.google.firebase:firebase-database:19.3.1'
implementation 'com.google.firebase:firebase-storage:19.1.1'
implementation 'com.firebaseui:firebase-ui-database:2.1.1'

标签: androidfirebaseintellij-idea

解决方案


推荐阅读