首页 > 解决方案 > crashlytics 仪表板没有出现?或 crashlytics 未启用?

问题描述

当我转到firebase控制台中的crashlytics页面时,我按照此处的步骤在我的android应用程序中添加了crashlytics ,该页面仍然显示为这样 在此处输入图像描述

我不知道接下来会发生什么?我在我的应用程序中配置了一些东西并运行它,并发生了一些崩溃,但页面仍然是这样的。我尝试卸载并安装该应用程序并刷新页面

所以也许我在这里做错了配置是我的 build.gradle (app)

apply plugin: 'com.android.application'
//apply plugin: 'io.fabric'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'

android {
compileSdkVersion 29
defaultConfig {
    applicationId "com.myapp.myappandroid"
    minSdkVersion 23
    targetSdkVersion 29
    versionCode 1
    versionName "0.1"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {
        minifyEnabled true
        debuggable false
        shrinkResources true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

android {

    testOptions.unitTests.includeAndroidResources = true
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}


}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.cesards.android:cropimageview:1.0.2.1'
implementation 'com.android.volley:volley:1.1.0'
implementation 'me.dm7.barcodescanner:zbar:1.8.4'
implementation 'com.scottyab:rootbeer-lib:0.0.7'
implementation 'id.zelory:compressor:2.1.0'

api 'com.google.android.material:material:1.3.0-alpha01'
testImplementation 'junit:junit:4.12'
testImplementation 'org.robolectric:robolectric:4.1'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test:rules:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.2.0'
androidTestImplementation 'androidx.test:core:1.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'

implementation 'com.google.firebase:firebase-core:17.5.1'

///here I add the crashlytics
implementation platform('com.google.firebase:firebase-bom:25.12.0')
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-crashlytics'

implementation 'com.google.firebase:firebase-messaging:20.1.6'
//noinspection GradleCompatible
implementation 'com.android.support:design:23.2.1'

implementation 'com.ismaeldivita.chipnavigation:chip-navigation-bar:1.3.1'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.70'

}

这是我的 build.gradle (myappandroid)

buildscript {

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

}
dependencies {
    classpath 'com.android.tools.build:gradle:3.6.4'

    classpath 'com.google.gms:google-services:4.3.4'
//  classpath 'io.fabric.tools:gradle:1.31.2'
    classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

allprojects {
  repositories {
    google()
    jcenter()
    maven {
        url 'https://maven.google.com/'
    }
    maven { url "https://jitpack.io" }
 }
}

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

请告诉我我做错了什么或我错过了什么?提前致谢

标签: javaandroidfirebasebuild.gradlecrashlytics

解决方案


推荐阅读