将 Crashlytics 与 Google Play 集成
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
通过将 Firebase 与 Google Play 关联,您可以更全面地了解您的 Android 应用的运行状况。例如,在 Crashlytics 信息中心内,您可以按 Google Play 轨道过滤应用的崩溃报告,以便让信息中心更有侧重地显示特定 build。
前提条件
在 Google Play 中设置您的应用
为了充分利用 Crashlytics 与 Google Play 的集成,请确保您的应用符合以下要求:
链接到“Google Play”
将您的 Firebase Android 应用关联至您的 Google Play 开发者账号:
在 Firebase 控制台中,前往settings > 项目设置,然后选择“集成”标签页。
在 Google Play 卡片中,点击关联。
如果您已与 Google Play 建立了关联,请改为点击管理。
按照屏幕上的说明启用 Crashlytics 集成,并选择要与 Google Play 关联的 Firebase Android 应用。
详细了解如何创建和管理 Firebase 与 Google Play 之间的关联。
按 Google Play 轨道过滤事件
在 Crashlytics 信息中心内,您可以直接按 Google Play 轨道过滤应用的崩溃报告。这样可让 Crashlytics 信息中心更有侧重地显示特定 build 的崩溃信息。
按 Play 轨道进行过滤的方法如下:
在 Firebase 控制台的 Crashlytics 信息中心顶部,选择所需的 Firebase Android 应用。
在顶级 filter_list 过滤条件菜单中,点击版本,然后选择要查看其 Crashlytics 事件的 Google Play 轨道。您可以选择多个轨道。
点击应用。
Crashlytics 信息中心内的所有数据(无崩溃统计信息、趋势和问题)现在将特定于所选 Play 轨道和版本。
其他相关主题
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-12。
[null,null,["最后更新时间 (UTC):2025-08-12。"],[],[],null,["\u003cbr /\u003e\n\nBy linking Firebase and Google Play, you get a richer view into your Android\napp's health. For example, in the Crashlytics dashboard, you can filter your\napp's crash reports by Google Play track, which allows you to better focus\nyour dashboard on specific builds.\n\nPrerequisites\n\nSet up your app in Google Play\n\nTo take advantage of the Crashlytics integration with Google Play, make\nsure that your app meets the following requirements:\n\n- Your app in Google Play and your Firebase Android App are both\n registered using the same package name.\n\n- Your app in Google Play is\n [set up on the app dashboard](https://support.google.com/googleplay/android-developer/answer/9859454)\n and is distributed to one of the Google Play tracks (Internal testing,\n Closed testing, Open testing, or Production).\n\nLink to Google Play **Note:** Make sure that you have the [required level of access](https://support.google.com/firebase/answer/6392038#permissions-and-roles) to view or manage links to Google Play.\n\nLink your Firebase Android App to your Google Play developer account:\n\n1. In the Firebase console, go to\n settings \\\u003e *Project settings*,\n and then select the *Integrations* tab.\n\n2. On the\n [*Google Play* card](https://console.firebase.google.com/project/_/settings/integrations/playlink),\n click **Link** . \n\n *If you already have links to Google Play, click **Manage** instead.*\n\n3. Follow the on-screen instructions to enable the Crashlytics integration\n and select which Firebase Android Apps to link to Google Play.\n\nLearn more about [creating and managing links between Firebase and\nGoogle Play](https://support.google.com/firebase/answer/6392038).\n\nFilter events by Google Play track\n\nYou can filter your app's crash reports by Google Play track directly in the\nCrashlytics dashboard. This allows you to better focus your dashboard on\nspecific builds.\n\nHere's how to filter by Play track:\n\n1. At the top of the [Crashlytics dashboard](https://console.firebase.google.com/project/_/crashlytics) in the\n Firebase console, select your desired Firebase Android App.\n\n2. In the top-level\n filter_list **Filter**\n menu, click **Versions** , and then select the Google Play track for which\n you want to view Crashlytics events. You can select more than one track.\n\n3. Click **Apply**.\n\nAll the data in the Crashlytics dashboard (crash-free statistics, trends,\nand issues) will now be specific to the selected Play track(s)\nand version(s).\n\nOther topics of interest\n\n-\n [Customize your crash report setup](/docs/crashlytics/customize-crash-reports)\n by adding opt-in reporting, logs, keys, and tracking of non-fatal errors.\n\n- Now that you have a link to Google Play, take advantage of other\n integrations:\n\n - Access your [in-app purchase and subscription revenue\n data](https://support.google.com/analytics/answer/11548051) from Google Play in both Firebase and Google Analytics.\n - [Upload an Android app bundle to App Distribution](/docs/app-distribution/android/distribute-console?apptype=aab) so that Google Play can generate an APK that's optimized for your tester's device configuration."]]