新版本的Firebase crash 库打混淆后的正式环境包会报错:
Execution failed for task ':app:uploadCrashlyticsMappingFileRelease
Caused by: java.lang.IllegalArgumentException: Host name may not be empty
解决方案:
在build.gradle android{}中加入:
gradle.taskGraph.whenReady {
tasks.each { task ->
if (task.name.contains("uploadCrashlyticsMappingFileRelease")) {
task.enabled = false
}
}
}