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

前端 未结 4 1829
悲哀的现实
悲哀的现实 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条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-05 12:51

    I resolved the ArrayIndexOutOfBoundsException by adding the following after applying the google-services plugin at the end of my build script:

    apply plugin: 'com.google.gms.google-services'
    com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
    

    This disables the version check which is buggy in google-services 4.2.0

提交回复
热议问题