androidfirebasefirebase-performance

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


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


Solution

  • 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.