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
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"