为什么我在添加依赖项时遇到此错误

时间:2021-05-13 08:32:28

标签: android

enter image description here

每当我尝试添加身份验证的 Firebase 依赖项时,它都会显示一些

找不到 Gradle DSL 方法:'setVariantDir()' 这个错误。

1 个答案:

答案 0 :(得分:0)

检查 /build.gradle 的版本,输入他的行类路径 'com.google.gms:google-services:4.3.5',这是我的错误,我使用的是 4.3.6,然后将其更改为 4.3。 5 并再次尝试同步

enter image description here

enter image description here