i Wish to test my app which needs network access on avd and on api 25. i am currently on a proxy network .i have looked at some of the answers from stackoverflow and have also looked at developer.google docs for doing this. I have tried starting the emulator from the command line by passing the necessary parameters using -http-proxy but it doesn't seem to work.The emulator starts but there is still no network access. Also i have changed the apn settings according to my proxy but that just limits my connection to the browser. and hence is not useful for my app. What should i do?? i use android studio 2.3.2 on windows 10.
Asked
Active
Viewed 166 times
0
-
Quick question did this work in a non-proxy environment? – jasonlam604 Jun 15 '17 at 15:12
-
yes it does work . – Abhivandit Verma Jun 15 '17 at 15:13
-
Have you set the dns parameter? – anemomylos Jun 15 '17 at 15:16
-
what do you mean by that?? dint get you – Abhivandit Verma Jun 15 '17 at 15:17
-
Read this: https://stackoverflow.com/questions/7252924/android-emulator-is-not-connecting-to-internet/43066809#43066809 – anemomylos Jun 15 '17 at 15:19
-
if you are talking about the netstat one, yes i have done that and if you are talking about the dns one...i am not able to understand what he is trying to say...it would be good.if you guide me through – Abhivandit Verma Jun 15 '17 at 15:23
-
I want to exclude that you had a dns issue. You can solve the dns issue by adding "-dns-server 8.8.8.8" in command line, when you start the emulator, or by changing the network interface order. Since you have did one of the above it's not a dns issue. – anemomylos Jun 15 '17 at 15:29
-
I use charles proxy and it is working fine (either emulator on host or in docker container) – Incepter Oct 13 '17 at 14:02