A Gradle build launched from an IDE can use a different configuration from the same project launched in a terminal. Before blaming a stale proxy process, compare the Gradle user home, JVM, and proxy properties used by each launch.

Gradle documents JVM proxy properties

For HTTP and HTTPS routes, a properties file can contain:

systemProp.http.proxyHost=203.0.113.10
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=203.0.113.10
systemProp.https.proxyPort=8080
systemProp.http.nonProxyHosts=localhost|*.example.internal

Use your assigned endpoint; for permitted public-repository routes, the HTTP proxy list provides candidate host and port pairs. The HTTPS bypass property is also http.nonProxyHosts; inventing https.nonProxyHosts is not the documented fix. The host properties contain an address, not a complete proxy URL.

Exporting HTTP_PROXY in a shell is not by itself proof that this JVM client uses it as its proxy policy. Check the properties the application supports.

The daemon does receive build information

Current Gradle documentation says that the client sends build information, including environment variables, to the daemon. “The daemon never receives new environment variables” is therefore an inaccurate blanket explanation.

Some JVM startup properties, including trust-store properties, are immutable for a running JVM. A changed Java home or trust-store startup configuration can consequently matter even when ordinary build environment values are passed along.

Compare the two launches

Check which Gradle distribution and Java runtime the IDE selects. Check whether it uses the same GRADLE_USER_HOME and user properties as the terminal. A proxy entry in one user's configuration does not establish what another context loaded.

If a changed startup requirement needs a different daemon, use the documented daemon controls for the Gradle version concerned. Do not treat stopping daemons as a substitute for finding an incorrect property or missing configuration file.

Finally, identify the request that failed. Wrapper downloads, build dependency resolution, and requests made by forked application or test processes are not automatically one networking context. Verify the process making the request before expecting a Gradle property to control it.

འབྲེལ་བའི་རྩོམ་ཡིག