简体   繁体   English

如何使互联网在Android TV模拟器中工作

[英]How to get internet to work in Android TV emulator

I have an Android TV (not google TV) emulator setup running android tv 5.0 and it has no access to the internet. 我有一个运行android tv 5.0的Android TV(不是Google TV)模拟器安装程序,它无法访问互联网。 In settings for both wifi and ethernet it says "no connection". 在wifi和以太网的设置中均显示“无连接”。 Is there something I am missing? 我有什么想念的吗? I have emulators for other versions of android running on phones and everything networking wise works ok. 我在手机上运行的其他版本的android都有模拟器,并且所有联网明智的方法都可以。

Also I am not saying that my app has no internet access. 另外,我并不是说我的应用程序无法访问互联网。 I am saying that the actually Android TV settings says no network connections. 我是说实际的Android TV设置说没有网络连接。

The Android SDK emulator images do not emulate any particular network connection (WiFi, Ethernet, etc.), just general availability of Internet access. Android SDK仿真器映像不会模拟任何特定的网络连接(WiFi,以太网等),而只能模拟Internet访问的一般可用性。 This is not unique to the Android TV emulator -- all the emulator images behave this way. 这不是Android TV模拟器所独有的-所有模拟器图像都以这种方式运行。 For most apps, this isn't a problem, as they just need Internet access. 对于大多数应用程序来说,这不是问题,因为它们只需要Internet访问即可。 For apps that need lower-level information, you are unfortunately stuck with testing on hardware. 对于需要较低级别信息的应用程序,很遗憾,您必须坚持在硬件上进行测试。

Note that third-party emulators, like Genymotion, may offer other alternatives. 请注意,第三方模拟器(如Genymotion)可能会提供其他替代方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM