在Android模拟器无法上网,共享Internet连接 [英] No internet access on Android Emulator, Shared Internet Connection
问题描述
可能是一个重复的问题,但我想每一件事。请帮我。
May be a duplicate question, but I tried every thing. Please Help me.
嗯,我已经安装了Eclipse朱诺和更新了ADT以及为22.0,我已经创建了Android 2.3的版本cusotm AVD为工作正常,但似乎没有对我的模拟器,
Well, I have Installed Eclipse Juno and Updated the ADT as well to 22.0, I have created a cusotm AVD of android 2.3 version as is working fine, But It seems there is no internet connection on my Emulator,
请注意:这也显示在标题栏的3G标志。看看我的模拟器下面给出的形象。
Note: It also shows the 3G symbol on the title bar. look the image of my emulator given below.
还有一件事我想告诉的是。我通过DSL网络电缆连接到互联网右转进入我的网卡,我也通过WiFi与我的室友通过Connectify的亲Hostspot分享我的互联网。在这种情况下,没有对我的模拟器,
One thing more I want tell is that. I connect to Internet via DSL internet cable right into my NIC card, and I also share my internet via wifi with my room-mates via connectify pro Hostspot. In this situation there is no internet connection on my Emulator,
但是,当我连接到我的朋友的Connectify的热点共享Internet然后正常工作。
But when I connect to the shared Internet of my friend's connectify hotspot then it works fine.
我要解决这个问题,我想是因为共享Internet连接的。
I want to resolve this issue, I think its because of sharing the internet connection.
推荐答案
最后,我整理出我的问题。
Finally I sorted out my problem.
这是问题,因为DNS服务器地址。
It was problem due to dns server address.
我做下面的步骤
- 开启CMD
- 转到您的Android SDK /工具的路径,比如我的路径是
G:\的Andriod开发\ Android的SDK \工具
- 键入此命令
G:\的Andriod开发\ Android的SDK \工具> emulator.exe -avd Android_2.3.3 -dns服务器8.8.8.8 -scale 0.75
- open CMD
- Goto your android-sdk/tools path, Like my path is
G:\Andriod Development\android-sdk\tools
- type this command
G:\Andriod Development\android-sdk\tools>emulator.exe -avd Android_2.3.3 -dns-server 8.8.8.8 -scale 0.75
在这里Android_2.3.3是你的AVD的名字,-dns服务器8.8.8.8将设置你的DNS地址为8.8.8.8或8.8.8.8:55和-scale将扩展您的AVD到指定的值。
here Android_2.3.3 is your AVD name, -dns-server 8.8.8.8 will set your DNS address to 8.8.8.8 or 8.8.8.8:55 and -scale will scale your AVD to specified value.
这将启动一个新的模拟器。 享受:)
this will start a new emulator. Enjoy :)
希望可以帮助他人。
这篇关于在Android模拟器无法上网,共享Internet连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!