3赞
568
当前位置:  开发笔记 > 编程语言 > 正文

Firebase分析调试视图没有显示任何内容-FirebaseAnalyticsDebugViewdoesnotshowanything

IlinkedmyAndroidappwithFirebaseusingAndroidStudioWhichcreatedandsetmygoogle-service.j

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

我使用Android Studio把我的Android应用程序和Firebase连接起来,后者创建并设置了我的google服务。json在我的项目。

When i debug my event logging in logcat i got :

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

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

But nothing is showing into firebase console debug view

但是在firebase控制台调试视图中没有显示任何内容

4 个解决方案

#1


10  

Test device setup

测试设备设置

To enable sending of DebugView data on a connected Android test device for a configured Firebase Analytics app, execute the following command:

若要在已连接的Android测试设备上为已配置的Firebase Analytics应用程序发送DebugView数据,请执行以下命令:

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

亚行壳记者debug.firebase.analytics。应用程序(your_app_package_name)

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

这种行为一直存在,直到您执行以下命令显式地禁用它:

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

亚行壳记者debug.firebase.analytics。应用程序的火眼金睛。

#2


6  

Enabling debug logging is different from enabling debug mode. As Frank van Puffelen suggested in his comment, to enable debug mode you need to set "debug.firebase.analytics.app" property to your app package name.

启用调试日志记录与启用调试模式不同。正如Frank van Puffelen在评论中建议的,要启用调试模式,需要设置“debug.firebase.analytics”。app"属性到你的app包名。

You can do this using adb with the following command:

您可以使用adb执行以下命令:

adb shell setprop debug.firebase.analytics.app "your.app.package.name"

亚行壳记者debug.firebase.analytics。应用“your.app.package.name”

You can find the package name of your app inside your AndroidManifest.xml as the package attribute on the manifest element (first element in the xml document).

您可以在AndroidManifest中找到应用程序的包名。xml作为manifest元素(xml文档中的第一个元素)的包属性。

#3


6  

After performing Enabling debug mode make sure that date&time in your debug device or emulator and in your pc is correct.

在执行启用调试模式后,请确保调试设备或仿真器和pc中的数据和时间是正确的。

#4


4  

Also make sure that you have the latest Google Play Services installed in the device/emulator or nothing is guaranteed to work.

还要确保在设备/模拟器中安装了最新的谷歌播放服务,否则什么都不能保证工作。

If you go to the settings on your emulator, there is Update button for that. Unfortunately it requires you to sign-in via your Google account.

如果你到模拟器上的设置,就会有更新按钮。不幸的是,它要求你通过谷歌账户登录。

enter image description here


推荐阅读
author-avatar
旻昊厉害_720
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有