Firebase plugin generates gradle error

Hello.
I have a problem with cordova-plugin-firebase.
At first the problem appeared while I was working on a project, but now, even if I create a new project and just add the plugin from the command line, then I try to emulate the project or build, it fails.

Failed to capture fingerprint of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check.
> Task :app:preDebugBuild FAILED
3 actionable tasks: 1 executed, 2 up-to-date
> The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[16.5.0,16.5.0], [16.4.0,16.4.0]], but resolves to 16.5.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

Any ideas?