Plugin with id 'com.google.firebase.firebase-perf' not found

6.6k Views Asked by At

In implementing the 'Performance' feature of Firebase, I got the following error attempting to sync the Gradle:

Plugin with id 'com.google.firebase.firebase-perf' not found.

I implemented it following instructions here: https://firebase.google.com/docs/perf-mon/get-started-android. In particular it directs you to specify the classpath dependency to com.google.firebase:perf-plugin in your root-level (project-level) Gradle file, not he app-level:

enter image description here

Here are my Gradles, app-level left, project-level right:

enter image description here

4

There are 4 best solutions below

1
On BEST ANSWER

Despite the red box warning not to put the perf-plugin in the app-level Gradle, putting it there allowed syncing and compiling, but with all sorts of new red warnings in the compile build log:

enter image description here

enter image description here

Not including the plugin at all still gave me something in my performance tab a couple weeks after adding just the implementation line:

implementation 'com.google.firebase:firebase-perf:19.0.9'

enter image description here

The better of these two Performance implementation solutions, to just leave the plugin out vs the gains of adding it to the app-level Gradle, despite apparent dependency conflict risks and build exceptions, I'd be open to views.

0
On

Please add Performance plugin in your dependency class-path

`classpath 'com.google.firebase:perf-plugin:1.3.1'  // Performance Monitoring plugin`
0
On

The configurations Firebase gave us to do are the following:

App Gradle: enter image description here Project Gradle: enter image description here

Solution to fix the problem:

  1. Remove id("com.google.firebase.firebase-perf") from plugins section in Project Gradle.
  2. Instead, add classpath("com.google.firebase:perf-plugin:1.4.2") to buildscript/dependencies in Project Gradle, like below:

enter image description here

2
On

Try this

id 'com.google.firebase.firebase-perf' version '1.4.2' apply false