卡在crashlytics中,无法在运行的应用程序上从Firebase进行验证

时间:2019-05-09 06:11:00

标签: android firebase crashlytics

我想将crashlytics添加到我的应用程序中,我关注了google docs,但是在添加crashlytics时,运行您的应用程序的验证从未完成。

我真的很难进行的第三步验证。steps to follow

虽然Fabric Io可以工作,但它在我的应用程序中显示了图标,我也可以使用Fabric查看错误。

这些是我的gradle文件

应用gradle

   uildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
    maven { url 'https://maven.fabric.io/public' }
}


android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.innovate.duplicatefileremoval"
        minSdkVersion 14
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    configurations.all { //fix ClassNotFoundException : OnUnhandledKeyEventListener
        resolutionStrategy.eachDependency { details ->
            def requested = details.requested
            if (requested.group == "com.android.support") {
                if (!requested.name.startsWith("multidex")) {
                    details.useVersion "26.+"
                }
            }
        }
    }



    implementation 'com.android.support:appcompat-v7:26.0.0'

    testImplementation 'junit:junit:4.12'
    apply plugin: 'io.fabric'
    implementation 'com.google.firebase:firebase-core:16.0.1'
    implementation 'com.makeramen:roundedimageview:2.3.0'
    implementation 'com.android.support:recyclerview-v7:26.0.0'
    implementation 'com.android.support:cardview-v7:26.0.0'
    implementation project(':sectionedrecyclerview')
    implementation 'commons-io:commons-io:2.6'
    implementation 'com.github.ybq:Android-SpinKit:1.2.0'
    api 'com.google.guava:guava:27.1-android'
    implementation 'com.tuyenmonkey:mkloader:1.4.0'
    implementation ('com.github.bumptech.glide:glide:4.9.0'){
        exclude group: 'com.android.support'
    }
    annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.10.0'
    implementation 'com.crashlytics.sdk.android:crashlytics-ndk:2.1.0'
}
apply plugin: 'com.google.gms.google-services'



crashlytics {
    enableNdk true
    androidNdkOut 'src/main/obj'
    androidNdkLibsOut 'src/main/libs'
}

这是项目gradle

    buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        // Add the following repositories:
        google()  // Google's Maven repository

        maven {
            url 'https://maven.fabric.io/public'
        }
    }
    dependencies {
         classpath 'com.android.tools.build:gradle:3.2.0'
        classpath 'com.google.gms:google-services:4.0.1'
        //Crashlytics requires Google Services plugin version 3.1.2 or higher
        classpath 'io.fabric.tools:gradle:1.25.4'
       //  classpath 'com.google.gms:google-services:3.0.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        // Check that you have the following line (if not, add it):
        google()  // Google's Maven repository
        // ...
    }
}

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

我已多次运行我的应用程序,但仍然没有任何操作。

1 个答案:

答案 0 :(得分:0)

您很有可能必须将调试/释放键指纹添加到控制台。

调试易于连接,要发布,您只需切换一次构建类型。

不需要任何崩溃即可确认连接。