Host name must not be empty with error : Execution failed for task ':app:uploadCrashlyticsMappingFileRelease'

Solution 1:

This issue will definitely occur if you are using Android Studio version 4.0 or above. You need to remove these Crashlytics lines from your Gradle file as it will automatically manage by the studio.

build.grade(Module:app)

apply plugin: 'com.google.firebase.crashlytics
implementation 'com.google.firebase:firebase-crashlytics:X.X.X'

build.grade(Project:appname)

classpath 'com.google.firebase:firebase-crashlytics-gradle:X.X.X'

Solution 2:

Remove the lines below from your gradle.properties file:

systemProp.http.proxyHost=
systemProp.http.proxyPort=80
systemProp.https.proxyHost=
systemProp.https.proxyPort=80

Reference

Solution 3:

Comment or disable your firebase crashlytics dependencies from both gradle app and project build till a new version is released compatible for gradle supported at Android studio 4.0