I have done all the necessary steps mentioned here https://firebase.google.com/docs/perf-mon/get-started-android and after that when i try to build the project it gives me this error
FirebasePerformancePlugin may only be applied to Android projects
From the error it looks like the "apply plugin: 'com.google.firebase.firebase-perf'" has been added to project's build.gradle. It needs to go in the app's build.gradle, just after the "apply plugin: 'com.android.application'" line