cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <>
Subject [jira] [Commented] (CB-12078) Project setup behind proxy no longer possible with android@6.0.0
Date Tue, 01 Nov 2016 22:15:59 GMT


Joe Bowser commented on CB-12078:

Unfortunately no. The clean was added because plugin installation was not working with the
latest version of the Android Tools and Gradle, which we upgraded to so that we can import
Cordova projects into the latest version of Android Studio.

What you may want to do is add a hook that adds the file instead with the
proper information.  I hate recommending this, because hooks make things more complex, and
far harder to support, but this is less likely to break when we're stuck trying to find work-arounds
to Android changes.

Otherwise, you're going to have to choose between getting through your Corporate Firewall,
or having to run build twice because it failed the first time do to some weird compile screwup
caused by the latest Gradle tools that Google released.

> Project setup behind proxy no longer possible with android@6.0.0
> ----------------------------------------------------------------
>                 Key: CB-12078
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>            Reporter: Jannis Achstetter
>              Labels: proxy
> We are running cordova behind a forced corporate proxy server. Therefore, the environment
variables http_proxy and https_proxy are set accordingly. Unfortunately when gradle tries
to download maven dependencies, these env settings are ignored (npm works fine though). To
allow gradle to fetch the deps via the proxy, we created a plugin that adds a ""
file to the platforms/android folder containing the proxy configuration (build-time plugin
only, no influence on runtime behaviour).
> With cordova-android@<6.0.0, this procedure was okay. We added the platform, added
the proxy-config-plugin and built the app, which made gradle download the deps via the proxy.
> Since android-gradle@6.0.0, the proxy-config-plugin cannot be added to the project since
it triggers a "clean" which fails due to gradle beeing unable to fetch the dependencies (since
the proxy config is missing).
> Is it possible to (temporarily) disable the "clean"-step when adding plugins? Alternatively:
Is there another/better way to configure a proxy for gradle?
> Related:
> Thanks for developing the amazing cordova!

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message