cs/app-distribution/troubleshooting)

  * Related products 

  * [ Analytics  ](//firebase.google.com/docs/analytics/)
  * [ Remote Config  ](//firebase.google.com/docs/remote-config/)

  * [ Build  ](/products-build)
  * [ Release & Monitor  ](/products-release)
  * [ Engage  ](/products-engage)

  * [ Overview  ](/docs)
  * [ Fundamentals  ](/docs/guides)
  * [ Build  ](/docs/build)
  * [ Release & Monitor  ](/docs/release)
  * [ Engage  ](/docs/engage)
  * [ Reference  ](/docs/reference)
  * [ Samples  ](/docs/samples)

  * [ Learn  ](/community/learn)
  * [ Events  ](/community/events)
  * [ Stories  ](/community/stories)

  * [ Add Firebase - Apple platforms (iOS+)  ](/docs/ios/setup)
  * [ Add Firebase - Android  ](/docs/android/setup)
  * [ Add Firebase - Web  ](/docs/web/setup)
  * [ Add Firebase - Flutter  ](/docs/flutter/setup)
  * [ Add Firebase - C++  ](/docs/cpp/setup)
  * [ Add Firebase - Unity  ](/docs/unity/setup)
  * [ Add Firebase - Server environments  ](/docs/admin/setup)
  * [ Manage Firebase projects  ](/docs/projects/learn-more)
  * [ Supported platforms & frameworks  ](/docs/libraries)
  * [ Use Emulator Suite  ](/docs/emulator-suite)
  * [ AI assistance with Gemini in Firebase  ](/docs/gemini-in-firebase)

  * [ Emulator Suite  ](/docs/emulator-suite)
  * [ Authentication  ](/docs/auth)
  * [ Realtime Database  ](/docs/database)
  * [ Firestore  ](/docs/firestore)
  * [ Storage  ](/docs/storage)
  * [ ML  ](/docs/ml)
  * [ Hosting  ](/docs/hosting)
  * [ Cloud Functions  ](/docs/functions)
  * [ Security Rules  ](/docs/rules)
  * [ App Check  ](/docs/app-check)
  * [ Extensions  ](/docs/extensions)

  * [ Crashlytics  ](/docs/crashlytics)
  * [ Performance Monitoring  ](/docs/perf-mon)
  * [ Test Lab  ](/docs/test-lab)
  * [ App Distribution  ](/docs/app-distribution)

  * [ Analytics  ](/docs/analytics)
  * [ Remote Config  ](/docs/remote-config)
  * [ A/B Testing  ](/docs/ab-testing)
  * [ Cloud Messaging  ](/docs/cloud-messaging)
  * [ In-App Messaging  ](/docs/in-app-messaging)
  * [ Dynamic Links  ](/docs/dynamic-links)
  * [ Google AdMob  ](/docs/admob)
  * [ Google Ads  ](/docs/ads)
  * [ App Indexing  ](/docs/app-indexing)

Firebase is back at Google I/O on May 14! [ Register now.
](https://io.google/2024/?utm_source=firebase&utm_medium=embedded_marketing&utm_campaign=&utm_content=)

  * [ Firebase ](https://firebase.google.com/)
  * [ Documentation ](https://firebase.google.com/docs)
  * [ Performance Monitoring ](https://firebase.google.com/docs/perf-mon)
  * [ Release & Monitor ](https://firebase.google.com/docs/release)

Send feedback

#  Get started with Performance Monitoring for Android

Stay organized with collections  Save and categorize content based on your
preferences.

##  Before you begin

If you haven't already, [ add Firebase to your Android project
](/docs/android/setup) .

##  **Step 1** : Add the Performance Monitoring SDK to your app

After you've added the Performance Monitoring SDK, Firebase automatically
starts collecting data for your app's [ screen rendering ](/docs/perf-
mon/screen-traces) and data related to your app's lifecycle (like [ app start
time ](/docs/perf-mon/app-start-foreground-background-traces) ). To enable
Firebase to monitor network requests, you must _also_ add the Performance
Monitoring Gradle plugin (next step).

  1. In your **module (app-level) Gradle file** (usually ` <project>/<app-module>/build.gradle.kts ` or ` <project>/<app-module>/build.gradle ` ), add the dependency for the Performance Monitoring library for Android. We recommend using the [ Firebase Android BoM ](/docs/android/learn-more#bom) to control library versioning. 
    
        dependencies {
        **// Import the BoM for the Firebase platform
        implementation(platform("com.google.firebase:firebase-bom:32.8.1"))**
    
        **// Add the dependency for the Performance Monitoring library**
        // When using the BoM, you don't specify versions in Firebase library depen