I was trying to build a release variant of my App. While building the apk Gradle is showing this error Unknown host 'cm.crashlytics.com'. You may need to adjust the proxy settings in Gradle.
I am using Gradle version 5.4.1 and plugin 3.5.3
Gradle dependency for crashlytics: com.google.firebase:firebase-crashlytics:17.0.0-beta01
I know this is now deprecated. But I tried with the latest. Still no luck. Also, I tested the auto-detection proxy settings and almost everything I could find from similar queries in the stack overflow.
Gradle shows this issue only on the creation of a release build.
How can I solve it?