Closed henry-dreamo closed 2 years ago
Hi @henry-dreamo
In your Unity project, under Assets/Plugins/Android
, it should have all the Android dependencies it is including. What versions of com.google.firebase.firebase-crashlytics and com.google.firebase.firebase-crashlytics-ndk do you have?
Hi @a-maurice
mainTemplate.gradle
Assets/Firebase/Editor/CrashlyticsDependencies.xml com.google.firebase:firebase-crashlytics-ndk:18.2.9 com.google.firebase:firebase-analytics:20.1.2 com.google.firebase:firebase-crashlytics-unity:8.10.1
After build, FirebaseApp.androidlib and FirebaseCrashlytics.androidlib folders are created.
@a-maurice
Having the same issue after update from 8.9.0 to 8.10.1
Ah, so the problem seems to be when enabling minification, it is not preserving the Android library symbols correctly. We will see if we can get this fixed, and find a workaround in the meantime.
Alright, for a workaround you can add the following to your custom proguard-user.txt file:
-keep,includedescriptorclasses public class com.google.firebase.crashlytics.FirebaseCrashlytics { *; }
-keep,includedescriptorclasses public class com.google.firebase.crashlytics.internal.common.CrashlyticsCore { *; }
-keep,includedescriptorclasses public class com.google.firebase.crashlytics.internal.common.DataCollectionArbiter { *; }
-keep,includedescriptorclasses public class com.google.firebase.crashlytics.ndk.FirebaseCrashlyticsNdk { *; }
-keep class com.google.firebase.crashlytics.ndk.** { *; }
A fix for this issue was merged in https://github.com/firebase/firebase-unity-sdk/pull/289, and this fix will be part of the upcoming 9.0 release of the Unity SDK.
In the meantime, you can use the workaround that Anthony provided just above and manually edit the custom proguard-user.txt file
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
I was using Firebase 8.9.0 well before. I updated it after 8.10.0 came out and it went without any problems, but some developers had problems with python in the editor, so I updated it to 8.10.1. The python-related problem disappeared in the editor, but the following error occurred when running after build.
Link that came up with a similar issue when I searched it, but it is different from the current version. I was wondering if there is a way to temporarily solve this issue in the current state.
Steps to reproduce:
Import and install Firebase Unity 8.10.1 and build for Android. An error log occurs with a 100% probability when running after build.
I didn't have time to go ahead with the QuickStart project.