Reputation: 4679
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:
Here are my Gradles, app-level left, project-level right:
Upvotes: 6
Views: 9392
Reputation: 334
The configurations Firebase gave us to do are the following:
Solution to fix the problem:
Upvotes: 3
Reputation: 91
Try this
id 'com.google.firebase.firebase-perf' version '1.4.2' apply false
Upvotes: 9
Reputation: 261
Please add Performance plugin in your dependency class-path
`classpath 'com.google.firebase:perf-plugin:1.3.1' // Performance Monitoring plugin`
Upvotes: 8
Reputation: 4679
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:
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'
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.
Upvotes: 1