android - Firebase Crashlytics 不与我的 android 项目同步

标签 android firebase firebase-crash-reporting

我正在尝试在我的 android 项目中启动 Firebase Crashlytics,但出于某种原因,在真实设备中运行该项目后,crashlytics 仪表板不会刷新,我无法通过此窗口 Screen shot from firebase console ,我也等了好几天也没动静。
这是 build.gradle(Project):

buildscript {
repositories {
    jcenter()
    maven {
        url 'https://maven.google.com/'
        name 'Google'
    }
    maven {
        url 'https://maven.fabric.io/public'
    }
    google()
}
dependencies {
    //classpath 'com.android.tools.build:gradle:2.0.0'
    classpath 'com.android.tools.build:gradle:3.1.4'
    classpath 'com.google.gms:google-services:4.0.0'
    classpath 'io.fabric.tools:gradle:1.25.4'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

allprojects {
    repositories {
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        jcenter()

    }
}

task clean(type: Delete) {
    delete rootProject.buildDir

}

和 build.gradle(Module):

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'



android {
    signingConfigs {
    }
    compileSdkVersion 27
    buildToolsVersion '27.0.3'
    defaultConfig {
        multiDexEnabled true
        applicationId "com.example.example"
        minSdkVersion 19
        targetSdkVersion 27
        versionCode 2
        versionName '1.0.2'
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.config
        }
    }
    productFlavors {
    }
}

dependencies {
    implementation project(':wheel-release')
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    testImplementation 'junit:junit:4.12'
    implementation 'com.android.support:customtabs:27.1.1'
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation 'pl.droidsonroids.gif:android-gif-drawable:1.1.14'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation('com.facebook.android:facebook-android-sdk:4.5.0') {
        exclude module: 'bolts-android'
        exclude module: 'support-v4'
    }
    implementation 'com.google.android.gms:play-services-auth:15.0.1'
    implementation 'com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.1'
    implementation 'com.google.firebase:firebase-core:16.0.1'
    implementation 'com.google.firebase:firebase-auth:16.0.2'
    implementation 'com.google.firebase:firebase-messaging:17.1.0'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.9.4'
    implementation 'com.google.firebase:firebase-appindexing:16.0.1'
    implementation fileTree(dir: 'libs', include: ['*.aar'])
    implementation 'com.android.support:support-v13:27.1.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    }
}
apply plugin: 'com.google.gms.google-services'

有什么想法吗?

最佳答案

之前

enter image description here

AFAIK Fabric 已弃用。所以在我的例子中添加这个元数据是有效的

<meta-data 
   android:name="firebase_crashlytics_collection_enabled" 
   android:value="true" />

之后:

enter image description here

在AndroidManifest.xml中的什么地方添加?

<application>
    <meta-data/>
    <activity/>
</application>

关于android - Firebase Crashlytics 不与我的 android 项目同步,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52006702/

相关文章:

android - 使用 mpandroidchart 和 kotlin 显示条形图

Android 模拟器屏幕尺寸与设备框架不同

android - 摩托罗拉 EMDK 实现 DataListener 崩溃 |安卓工作室

javascript - 使用 Ember.js 和 EmberFire 生成表单

ios - 崩溃符号上传的 Xcode 错误 : symbolFileUploadLocation: The caller does not have permission

ios - 获取用于调试应用程序的 Crashlytics DSYM

android - 在 Android Studio 项目中添加外部项目作为依赖导致找不到文件的错误

angularjs - Uncaught Error : A network error

reactjs - 我应该开发一个单独的快速服务器,还是在我的 next.js 应用程序中处理所有 API 调用?

android - 从 Firebase 崩溃报告中获取原始堆栈跟踪