Search code examples
androidfirebaseandroid-gradle-pluginfirebase-performanceandroid-gradle-7.0

Unable to add Firebase Performance Plugin for the new Android gradle project structure


I'm trying to add to my Firbebase Performance to my Android project, but the documentation does not explain how to add the classpath on the new gradle.

Where should I write.

classpath 'com.google.firebase:perf-plugin:1.4.2'

... I tried to mapped to:

id "com.google.firebase.perf-plugin" version "1.4.2" apply false

I had searched a lot before posting this question but didn't find something useful.

It seems that the firebase documentations are not updated, because I see the same problems with other tools like Crashlytics and Google Services


Solution

  • I found the solution:

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

    Thanks Chat GPT!! :D

    Chat GPT showing how to do it