unknown property 'LibraryVariants' in build.gradle

前端 未结 3 2093
死守一世寂寞
死守一世寂寞 2020-12-20 15:43

I have the error below in build.gradle at this line:

apply plugin: \'com.google.gms.google-services\' 

Error:(56, 0) Could n

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-20 16:13

    Add the following to the @project level gradle file:

    classpath 'com.android.tools.build:gradle:1.3.0'
    classpath 'com.google.gms:google-services:3.0.0'
    

    Add the following to the @app level gradle file:

    // Dependency for Google Sign-In
    compile 'com.google.android.gms:play-services-auth:9.4.0'
    

    Apply plugin

    apply plugin: 'com.google.gms.google-services'
    

提交回复
热议问题