Can't update to com.google.gms:google-services:4.2.0

前端 未结 4 1845
悲哀的现实
悲哀的现实 2021-01-05 12:09

At start google-services ver. is classpath \'com.google.gms:google-services:4.1.0\', but when I change it to 4.2.0 the error occurs during Sy

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-05 12:51

    the stack-trace hints for the Google Services Gradle plugin:

    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
        at com.google.android.gms.dependencies.DependencyInspector
    

    and you add the plugin: classpath "com.google.gms:google-services:4.2.0", but never apply it with: apply plugin: "com.google.gms.google-services" (this belongs to the bottom of the file).

    having no associated Java dependencies might also cause that; for example:

    implementation "com.google.android.gms:play-services-base:16.1.0"
    

提交回复
热议问题