android studio 2.2 proxy set, gradle proxy set, emulator proxy set


http proxy set:









































gradle proxy set :


gradle.properties
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

systemProp.https.nonProxyHosts=localhost 
systemProp.https.proxyPort=xxx
systemProp.https.proxyHost=xxx.xxx.xxx.xxx

systemProp.http.proxyHost=xxx.xxx.xxx.xxx
systemProp.http.nonProxyHosts=localhost 
systemProp.http.proxyPort=xxxx 


emulator proxy set :
windows method
1. list avd name
%UserProfile%\AppData\Local\Android\sdk\tools\bin\avdmanager.bat list avd
2 start emulator via terminal command

%UserProfile%\AppData\Local\Android\sdk\tools\emulator.exe -avd Nexus_5_API_24 -http-proxy xxx.xxx.xxx.xxx:xxxx

ps : confirm airplane mode off



Finally, we can access internet on emulator.

Comments

Popular posts from this blog

How to fix error : no module named sendgrid when try to use sendgrid python lib in PHP.

react-native run-android : sun.security.provider.cert path.SunCertPathBuilderException : unable to find valid certification path to req uested target

react-native run-android : do not build/update modified code(App.js)