Почему я не получаю никаких сообщений о сбоях Firebase? - PullRequest
0 голосов
/ 13 октября 2019

Я пытаюсь добавить поддержку Firebase для своего приложения, и после добавления всех зависимостей я все еще не могу получать отчеты. Я также переустановил свое приложение, и оно мне не помогло. Где может быть проблема? Я также добавлю другую важную информацию о моей проблеме, но, пожалуйста, скажите мне, что я должен добавить для решения этой проблемы.

ОБНОВЛЕНИЕ

Мои файлы Gradle, проект один:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {
        google()
        jcenter()
        maven {
            url 'https://maven.fabric.io/public'
        }
    }


    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50"
        classpath 'com.google.gms:google-services:4.3.2'
        classpath 'io.fabric.tools:gradle:1.31.1'  // Crashlytics plugin
    }
}



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

        maven { url 'https://maven.google.com' }
    }
}

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

уровень приложения:

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric'


android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "..."
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "..."
        testInstrumentationRunner "android.support.Singleton.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility = '1.8'
        targetCompatibility = '1.8'
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'com.google.firebase:firebase-core:17.2.0'
    testImplementation 'junit:junit:4.12'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.50"

    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

    // Retrofit
    implementation 'com.squareup.retrofit2:retrofit:2.5.0'
    implementation 'com.google.code.gson:gson:2.8.5'
    implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
    implementation 'com.squareup.retrofit2:converter-scalars:2.3.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
    implementation 'us.belka:androidtoggleswitch:1.2.2'
    implementation 'commons-io:commons-io:2.4'
    implementation files('libs/mail.jar')
    implementation 'com.github.droidbond:LoadingButton:0.1.5'

    implementation 'com.samigehi:loadingview:1.1'

    implementation 'io.github.tonnyl:whatsnew:0.1.1'
    implementation 'com.github.GrenderG:Toasty:1.3.1'
    implementation 'com.lsjwzh:materialloadingprogressbar:0.5.8-RELEASE'
    implementation 'com.daimajia.swipelayout:library:1.2.0@aar'

    implementation 'com.google.firebase:firebase-analytics:17.2.0'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'


    testImplementation 'junit:junit:4.12'
}

Итак, добавив все важные области в мой код, я полностью переустановил свое приложение. Это означает, что я сначала удалил его из своего устройства, а затем снова установил его. Может быть, проблема в том, что я переустановил это приложение на эмуляторе ???? И сейчас у меня есть эта картина:

enter image description here

Я не могу закончить отмеченный шаг с номером 3. Может кто-то знает, где я допустил ошибку?

1 Ответ

0 голосов
/ 14 октября 2019

Может быть, эта информация поможет кому-то еще, кроме меня)) Я решил эту проблему, добавив несколько строк в мой AndroidManifest для application областей действия:

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

, что позволит включить аварийный отказ в вашем проекте также безсоздавая аварию. Удачи: D

...