1

I have a problem with my android emulator on my mac. I can use the browser and load websites so there is an internet connection in my AVD. My application can't connect to the internet, I am aware of the manifest configuration and I have set the internet permission on.

<uses-permission android:name="android.permission.INTERNET" />

The application works well on several devices but never worked on the emulator. What am I doing wrong?

Thanks,

Omri.

4

2 回答 2

1

Preferences->Launch settings to Default emulator options: -dns-server 并在 url 上使用 https。

于 2013-01-15T12:29:59.200 回答
0

我解决了我的问题,James Elsey 的问题把我引向了正确的方向。我试图使用 ssl 证书访问我自己的服务器。出于某种原因,模拟器不喜欢我的 rapidsssl 证书并且连接超时。它确实适用于Android设备。因为模拟器仅用于开发,所以我可以更改配置并仅在没有 ssl 的情况下使用 http。

感谢大家。

于 2012-07-23T16:46:34.690 回答