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.
No comments:
Post a Comment