Firebase Analytics调试视图不显示任何内容 [英] Firebase Analytics Debug View does not show anything

查看:622
本文介绍了Firebase Analytics调试视图不显示任何内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Android Studio将Android应用程序与Firebase链接了 哪个创建了我的google-service.json并将其设置到我的项目中.

I linked my Android app with Firebase using Android Studio Which created and set my google-service.json into my project.

当我在logcat中调试事件日志时,我得到了:

When i debug my event logging in logcat i got :

V/FA-SVC: Successful upload. Got network response. code, size: 204, 0

但是在Firebase控制台调试视图中什么都没有显示

But nothing is showing into firebase console debug view

推荐答案

测试设备设置

要为已配置的Firebase Analytics应用启用在连接的Android测试设备上发送DebugView数据,您可以按照以下步骤操作:

To enable sending of DebugView data on a connected Android test device for a configured Firebase Analytics app, you can follow the step below:

  1. 如果仅使用单个构建变体,则以下命令就足够了:

  1. If you are simply working with single build variant, the following command is enough:

adb shell setprop debug.firebase.analytics.app [your_app_package_name]

  • 但是,如果要使用具有不同应用程序ID(与应用程序包名称不同)的多个构建变体,请确保执行以下命令:

  • But if you are working with multiple build variants with different application IDs which are not the same as the app package name, be sure to execute the following command:

    adb shell setprop debug.firebase.analytics.app [your_application_id]
    

    在这里,应用程序ID是在相应的gradle文件中找到的构建变体的应用程序ID.例如,假设您有两个构建变体x和y的x.gradle和y.gradle,并且还具有常规的build.gradle文件.要使用应用程序ID com.abc.x调试构建版本x,命令将为:

    Here, application ID is the app ID of your build variant found in the corresponding gradle file. For example, lets say you have x.gradle and y.gradle for two build variants x and y, and you also have the general build.gradle file. To debug the build variant x with application ID com.abc.x, the command will be:

    adb shell setprop debug.firebase.analytics.app com.abc.x
    

    类似地,要调试应用程序ID为com.abc.y的构建版本y,命令将为:

    Similarly, to debug the build variant y with application ID com.abc.y, the command will be:

    adb shell setprop debug.firebase.analytics.app com.abc.y
    

  • 此行为一直存在,直到您通过执行以下命令显式禁用它为止:

    This behavior persists until you explicitly disable it by executing the following command:

    adb shell setprop debug.firebase.analytics.app .none.
    

    这篇关于Firebase Analytics调试视图不显示任何内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆