Crashlytics Fabric : Failed to execute task

前端 未结 12 1639
暖寄归人
暖寄归人 2020-12-20 11:04

I\'ve been having an issue and I don\'t know how to fix it.

My project use crashlytics, but it\'s always crash and not sent report. I have a TimeoutException:

<
相关标签:
12条回答
  • 2020-12-20 11:16

    Same thing here, you follow the google docs and it just doesn't work. 5 years ago Crashlytics used to be extremely solid. Sad to see this.

    0 讨论(0)
  • 2020-12-20 11:20

    Cause the app may crash before Fabric can connect to its service. Solution: just remove your throw Exception code and perform a fresh install.

    0 讨论(0)
  • 2020-12-20 11:24

    Maybe you've another library that cause this error. Try to remove it,

    for example you can try

    maven { url "https://jitpack.io" }
    
    0 讨论(0)
  • 2020-12-20 11:26

    I fixed the TimeoutException by adding the following to my build.gradle

    ext.enableCrashlytics = true
    

    Or if you have several extensions already:

    ext {
        ...
        enableCrashlytics = true
    }
    

    You can put it in your application's build.gradle.

    0 讨论(0)
  • 2020-12-20 11:27

    Okay. Right after apply plugin section of your build.gradle put the ext solution

    apply plugin: 'io.fabric'
    apply plugin: 'com.google.gms.google-services'
    
    ext {
        enableCrashlytics = true
    }
    
    android { }
    

    !Then do Invalidate cache and restart. Also make sure you have implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'

    0 讨论(0)
  • 2020-12-20 11:28

    I got this issue as well. I solved it simply by doing Android Studio -> File -> Invalidate Caches / Restart -> Invalidate and restart

    0 讨论(0)
提交回复
热议问题