Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set proxy to android emulator using command line?

I am able to bring up the emulator(Android SDK 4.0.3) with proxy setting from the command line and The browser able to find the site, but the page is not loading properly.

emulator -avd myavd -http-proxy=http://abc-proxy.xyz.com:8080
like image 705
Srikanth Chilukuri Avatar asked May 12 '26 07:05

Srikanth Chilukuri


2 Answers

Use below steps -

1.Right click Project -> Run As -> Run Configure -> Target

2.Scroll Down

3.Additional emulator command line option, type

-http-proxy http://10.1.1.10:8080

4.Restart ur emulator, it will work, and it is working for me too

like image 105
Rakesh Avatar answered May 18 '26 03:05

Rakesh


Remove = & put .avd and try so it becomes

emulator -avd myavd.avd -http-proxy http://abc-proxy.xyz.com:8080

like image 34
Kumar Pallav Avatar answered May 18 '26 03:05

Kumar Pallav



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!