I have implemented Firebase
crashlytics
as suggested. I have put this in my app level release
build variant:
firebaseCrashlytics
{
mappingFileUploadEnabled true
}
but when I start to build signed apk
I am always getting this error
Task :app:uploadCrashlyticsMappingFileRelease FAILED
FAILURE: Build failed with an exception.
Expected file collection to contain exactly one file, however, it contains no files.
If I set mappingFileUploadEnabled
to false
then release apk
builds successfully. I have searched a lot but couldn't find a work around. Anyone can help?
Error: "Crashlytics could not find Google Services plugin task: processReleaseGoogleServices. Make sure com.google.gms.google-services is applied BEFORE com.google.firebase.crashlytics. If you are not using the Google Services plugin, you must explicitly declare googleServicesResourceRoot inputs for Crashlytics upload tasks."
I had something like this in build.gradle
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.gms.google-services'
changed it to this and voila! it works:
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'