I am getting this error: Here is my build.gradle(Module:app)
apply plugin: \'com.android.application\'
apply plugin: \'io.fabric\'
android {
compileSdkV
I had this problem and I was using a proxy before. I figured out that my proxy is not working any more so i went to settings and changed the proxy config to Automatic but still the same error was being shown.
I finally found that the proxy was also automatically set to gradle as well but when I disabled it, it wasn't removed from my gradle config. so I went to C:Users/User/.gradle/gradle.properties
and in that file there was something like this:
## For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
#enter code here
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx1024m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Sat Aug 31 18:23:27 IRDT 2019
systemProp.https.proxyPort=8118
systemProp.http.proxyHost=fodev.org
systemProp.https.proxyHost=fodev.org
systemProp.http.proxyPort=8118
so I just edited this file and commented the last 4 lines and it solved my problem.
I am also using a VPN service.