Crashlytics don't report crashes in firebase
Asked Answered
B

3

1

Application using Dexguard(8.4.9), Crashlytics(17.2.2), CrashlyticsGradle(2.3.0) Already insert a lot of rules in dexguard-rules and not solved that. All help will be welcome.

Logcat:

D/FirebaseCrashlytics: Checking for crash reports... D/FirebaseCrashlytics: Found crash report /data/user/0/com.xxxxxxx/files/.com.google.firebase.crashlytics/nonfatal-sessions/5F64E11E01BD-0001-6C5D-32B9DF9F8C8E.cls D/FirebaseCrashlytics: Reports are being sent. D/FirebaseCrashlytics: Starting report processing in 1.0 second(s)... D/FirebaseCrashlytics: No log data to include with this event. D/FirebaseCrashlytics: Update app request ID: aca879994130dcc6ab3f551k2j4bjj23 D/FirebaseCrashlytics: No log data to include with this event. D/FirebaseCrashlytics: Result was 204 D/FirebaseCrashlytics: Crashlytics report could not be enqueued to DataTransport java.lang.IllegalArgumentException: Transport backend 'cct' is not registered at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(:1077) at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(:47) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919)

Behka answered 8/1, 2021 at 19:38 Comment(2)
Do you also have -keepresourcexmlelements manifest/application/service/meta-data@value=cct in dexguard rules?Tortuga
@Tortuga I'm not using dexguard. What else could be causing this?Clouet
F
0

To solve the problem with Firebase Crashlytics you have to put in your minefest:

<service android:exported="false" android:name="com.google.android.datatransport.runtime.backends.TransportBackendDiscovery">
    <meta-data android:name="backend:com.google.android.datatransport.cct.CctBackendFactory" android:value="cct"/>
</service>
Felder answered 18/1, 2021 at 20:15 Comment(2)
When I add this, I'm getting a new error IllegalArgumentException: No such service ComponentInfo{my.package.name/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService}Clouet
@HaseebPavaratty See new answer belowInsole
R
3

After I added this code:

<service android:exported="false" android:name="com.google.android.datatransport.runtime.backends.TransportBackendDiscovery">
            <meta-data android:name="backend:com.google.android.datatransport.cct.CctBackendFactory" android:value="cct"/>
        </service>

I got a new error:

IllegalArgumentException: No such service ComponentInfo{my.package.name/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService}

I solved this error by adding this service to the manifest file:

        <service
            android:name="com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService"
            android:exported="false"
            android:permission="android.permission.BIND_JOB_SERVICE" >
        </service>
Rishi answered 26/11, 2021 at 17:52 Comment(1)
Worked on flutter 3.3.2, thanks!Kerf
F
0

To solve the problem with Firebase Crashlytics you have to put in your minefest:

<service android:exported="false" android:name="com.google.android.datatransport.runtime.backends.TransportBackendDiscovery">
    <meta-data android:name="backend:com.google.android.datatransport.cct.CctBackendFactory" android:value="cct"/>
</service>
Felder answered 18/1, 2021 at 20:15 Comment(2)
When I add this, I'm getting a new error IllegalArgumentException: No such service ComponentInfo{my.package.name/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService}Clouet
@HaseebPavaratty See new answer belowInsole
G
0

Successful sending with JOBS code

<service
        android:name="com.google.android.datatransport.runtime.backends.TransportBackendDiscovery"
        android:exported="false">
        <meta-data
            android:name="backend:com.google.android.datatransport.cct.CctBackendFactory"
            android:value="cct" />
    </service>
    <service
        android:name="com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService"
        android:exported="false"
        android:permission="android.permission.BIND_JOB_SERVICE" >
    </service>

Crashlytics report successfully enqueued to DataTransport

Guttapercha answered 21/6 at 18:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.