即使将一天的crashlytics集成到android应用中,Firebase crashlytics数据也不会在dashbord中显示 [英] Firebase crashlytics data not showing up in dashbord even after a day crashlytics was integrated to android app

查看:469
本文介绍了即使将一天的crashlytics集成到android应用中,Firebase crashlytics数据也不会在dashbord中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大约一天前,我在我的Android应用中添加了Firebase crashlytics。但是我仍然在firebase控制台的crashlytics页面上看到以下入门指南。





以下是我添加了crashlytics的git diff。



项目级gradle文件:

  @@ -5,10 +5,12 @@ buildscript {
存储库{
jcenter()
google()
+ maven {url'https://maven.fabric.io/public'}
}
依赖项{
classpath'com.android.tools.build:gradle:3.5.1'
-类路径'com.google.gms:google-services:4.3.0'
+类路径'com.google.gms:google-services:4.3.2'
+类路径'io。 fabric.tools:gradle:1.31.2'// Crashlytics插件
//注意:请勿在此处放置应用程序依赖项;它们属于
// //在单独的模块build.gradle文件
}
@@ -18,6 +20,7 @@ allprojects {
存储库{
jcenter ()
google()
+ maven {url'https://maven.fabric.io/public'}
}
}

应用级Gradle文件:

  @ @ -1,4 +1,5 @@ 
apply插件:'com.android.application'
+ apply插件:'io.fabric'

android {
compileSdkVersion 29
@@ -93,6 +94,8 @@依赖项{
实现'com.google.firebase:firebase-firestore:21.2.0'
实现'com。 google.firebase:firebase-auth:19.1.0'
实现'com.google.firebase:firebase-storage:19.1.0'
+实现'com.google.firebase:firebase-analytics:17.2 .0'
+实现'com.crashlytics.sdk.android:crashlytics:2.10.1'
实现'net.cachapa.expandablelayout:expandablelayout:2.9.2'
实现tation'org.dizitart:nitrite:3.2.0'
实现'com.github.bumptech.glide:glide:4.9.0'

我使用以下方法使应用崩溃了几次。

  Crashlytics.getInstance() .crash(); 

我的设备已连接互联网。



我同时使用了调试版本和发布版本(签名的apk)进行了测试。

解决方案


  1. 删除行 Crashlytics.getInstance()。。 crash(),

  2. 在真实设备上运行您的应用,

  3. 拔出设备,

  4. 关闭该应用程序,

  5. 在拔出设备时在设备上打开该应用程序。

现在,请检查再次使用FireBase。您应该会在Crashlytics选项卡中看到一些图表。



对于测试崩溃,您可以执行上述过程,但是这次使用代码 Crashlytics.getInstance()。crash() 。



注意:。请确保将此行放置在App Delegate的 didFinishLaunching方法之外


I added firebase crashlytics to my android app about a day ago. But I still see following getting started guide on the crashlytics page of the firebase console.

Following is my git diff for adding crashlytics.

project level gradle file:

@@ -5,10 +5,12 @@ buildscript {
     repositories {
         jcenter()
         google()
+        maven { url 'https://maven.fabric.io/public' }
     }
     dependencies {
         classpath 'com.android.tools.build:gradle:3.5.1'
-        classpath 'com.google.gms:google-services:4.3.0'
+        classpath 'com.google.gms:google-services:4.3.2'
+        classpath 'io.fabric.tools:gradle:1.31.2'  // Crashlytics plugin
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
     }
@@ -18,6 +20,7 @@ allprojects {
     repositories {
         jcenter()
         google()
+        maven { url 'https://maven.fabric.io/public' }
     }
 }

app level gradle file:

@@ -1,4 +1,5 @@
 apply plugin: 'com.android.application'
+apply plugin: 'io.fabric'

 android {
     compileSdkVersion 29
@@ -93,6 +94,8 @@ dependencies {
     implementation 'com.google.firebase:firebase-firestore:21.2.0'
     implementation 'com.google.firebase:firebase-auth:19.1.0'
     implementation 'com.google.firebase:firebase-storage:19.1.0'
+    implementation 'com.google.firebase:firebase-analytics:17.2.0'
+    implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
     implementation 'net.cachapa.expandablelayout:expandablelayout:2.9.2'
     implementation 'org.dizitart:nitrite:3.2.0'
     implementation 'com.github.bumptech.glide:glide:4.9.0'

I crashed my app several times using following method.

Crashlytics.getInstance().crash();

My device has an internet connection.

I tested using both a debug build and a release build (signed apk).

What could be the reason the dashboard not showing up any crash statistics yet, even after a day of crashlytis setup in the app?

解决方案

  1. Remove the line "Crashlytics.getInstance().crash()",
  2. Run your app on a Real Device,
  3. Unplug device,
  4. Close the app,
  5. Open the app on your device as it's unplugged.

Now Check the FireBase again. You should see some charts in Crashlytics Tab.

For testing crashes you can do the above process, but this time with code "Crashlytics.getInstance().crash()".

Note:  Be sure to place this line outside your App Delegate’s "didFinishLaunching" method

这篇关于即使将一天的crashlytics集成到android应用中,Firebase crashlytics数据也不会在dashbord中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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