diff --git a/pythonforandroid/recipe.py b/pythonforandroid/recipe.py index 44469aef2..64630cc37 100644 --- a/pythonforandroid/recipe.py +++ b/pythonforandroid/recipe.py @@ -526,6 +526,11 @@ def get_recipe_env(self, arch=None, with_flags_in_cc=True): if arch is None: arch = self.filtered_archs[0] env = arch.get_env(with_flags_in_cc=with_flags_in_cc) + + for proxy_key in ['HTTP_PROXY', 'http_proxy', 'HTTPS_PROXY', 'https_proxy']: + if proxy_key in environ: + env[proxy_key] = environ[proxy_key] + return env def prebuild_arch(self, arch):