Proxy which requires authentication with Android Emulator
I Managed to do it in the Adndroid 2.2 Emulator.
Go to "Settings" -> "Wireless & Networks" -> "Mobile Networks" -> "Access Point Names" -> "Telkila"
Over there set the proxy host name in the property "Proxy"
and the Proxy port in the property "Port"
Unable to access Internet from Android Emulator
This would be a two step solution and I hope it works for you. I am afraid, I could come up with nothing simpler. :-(
But this should get you started.
Step 1:
Download an APK: http://forum.xda-developers.com/showthread.php?t=1359389. Direct Link to the APK
Step 2: SOURCE: https://stackoverflow.com/a/3480235/450534
1. Execute the emulator.
2. Start the console (Windows XP), Run -> type **cmd**, and move to the **platform-tools** folder of **SDK** directory.
3. Paste the *APK* file in the 'platform-tools' folder.
4. Rename the APK to `proxy.apk` or something simple that you will find easy to type in a Command Prompt. The name itself does not matter. The **.apk** extension does.
4. Then type the following command.
> adb install [apk file name]
Example:
> adb install Jorgesys.apk
Now, you will installed the application linked in Step 1 on your emulator. Configure the settings in the app and you should have Internet working on the emulator.
Let me know how it goes.
Note: The app is also available on Google Play and has a few screenshots that might help you get started: https://play.google.com/store/apps/details?id=org.proxydroid
Disclosure: I have nothing to do with this app. I found it while searching for some solutions for the OP. Nothing more.
Android Studio : 407 Proxy Authentication Required
Finally I found a solution.
There is a gradle.properties
file under .gradle
of home directory ~/.gradle/gradle.properties
where you need to enter your proxy password manually.
systemProp.http.proxyPassword=xxxxx
systemProp.http.proxyHost=xxxxx
systemProp.https.proxyPort=xxxx
systemProp.https.proxyUser=xxxxx
systemProp.https.proxyHost=xxxxx
systemProp.https.proxyPassword=xxxxx
systemProp.http.proxyPort=xxxx
systemProp.http.proxyUser=xxxxx
How to configure proxy in emulators in new versions of Android Studio?
You can open old emulator version by unchecking setting here
If you struggle to close your old emulator, try killing qemu... process
Related Topics
Activity Killed/Oncreate Called After Taking Picture via Intent
Push Up Content When Clicking in Edit Text
How to Apply Plugin to Only One Flavor in Gradle
Dependencies' Cannot Be Applied to '(Groovy.Lang.Closure)'
Google Drive API Doesn't Play Well with Proguard (Npe)
Android Sp VS Dp Texts - What Would Adjust the 'Scale' and What Is the Philosophy of Support
Getting Context in Androidtestcase or Instrumentationtestcase in Android Studio's Unit Test Feature
Android Studio 1.0.2 Not Building App:Mergedebugresources Error
Android:Record Sound in Mp3 Format
Xml Rendering Errors Android Preview N
How Does One Implement Drag and Drop for Android Marker
Open a Selected File (Image, PDF, ...) Programmatically from My Android Application