I am trying and failing to get crashlytics building in unity.
I am using unity 2018.4.30. It was added to unity as a package (7.0.2). Other firebase packages were already in the project and working. Initially I ran the dependency resolver and tried to build it. The resolver added these:
implementation 'com.google.firebase:firebase-crashlytics:17.2.2' //Packages/com.google.firebase.crashlytics/Firebase/Editor/CrashlyticsDependencies.xml:13
implementation 'com.google.firebase:firebase-crashlytics-unity:7.0.2' //Packages/com.google.firebase.crashlytics/Firebase/Editor/CrashlyticsDependencies.xml:20
which built but it crashed on launch with an error message pointing me to some android specific setup that had to be added to the gradle file (odd that the resolver didn't do it...)
I followed those instructions and added
classpath 'com.google.gms:google-services:4.3.5'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0'
to dependencies
I also added
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
to the gradle file
my gradle tools are:
classpath 'com.android.tools.build:gradle:3.4.3'
my error message is:
* What went wrong: A problem occurred configuring root project 'gradleOut'.
java.lang.ClassCastException: org.gradle.api.internal.file.DefaultFilePropertyFactory$DefaultDirectoryVar$1 cannot be cast to org.gradle.api.file.Directory