Android的电视模拟器:无法上网 [英] Android TV Emulator: No Internet Access

查看:1353
本文介绍了Android的电视模拟器:无法上网的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序无法访问互联网,当我在Android TV仿真运行它。

我想这是我的code,但在相同的应用程序可以访问Internet就好了,当我在电话模拟器像Nexus 5的运行它。

有什么地方出错了?



Android_TV_1080p_API_23.avd,config.ini文件:

  avd.ini.encoding = UTF-8
AvdId = Android_TV_1080p_API_23
abi.type = 86
avd.ini.displayname =的Andr​​oid TV(1080)23 API
disk.dataPartition.size = 200M
hw.accelerometer =无
hw.audioInput = YES
hw.battery =无
hw.camera.back =无
hw.camera.front =无
hw.cpu.arch = 86
hw.dPad = YES
hw.device.hash2 = MD5:f26df701fd74415b9a435e3e607b5d8a
hw.device.manufacturer =谷歌
hw.device.name =的Andr​​oid TV(1080)
hw.gps = YES
hw.gpu.enabled = YES
hw.initialOrientation =景观
hw.keyboard = YES
hw.keyboard.lid = YES
hw.lcd.density = 320
hw.mainKeys = YES
hw.ramSize = 1536
hw.sdCard = YES
hw.sensors.orientation =无
hw.sensors.proximity =无
hw.trackBall =无
image.sysdir.1 =系统影像\\ Android的23 \\ Android的电视\\ 86 \\
runtime.network.latency =无
runtime.network.speed =全
runtime.scalefactor = 0.5
sdcard.path = C:\\ ... \\ Android_TV_1080p_API_23.avd \\ sdcard.img
skin.dynamic = YES
skin.name = 1920×1080
skin.path = 1920×1080
快照。present =无
tag.display =的Andr​​oid电视
tag.id = Android的电视
vm.heapSize = 128


解决方案

我也有这个问题,无法解决它的API 23,而是采取一个仿真器上22或21,你的是好去。

My App is unable to access the Internet, when I run it on an Android TV emulator.

I thought it was my code, but the same app can access the Internet just fine when I run it on a phone emulator like the Nexus 5.

What could be wrong?


Android_TV_1080p_API_23.avd, config.ini:

avd.ini.encoding=UTF-8
AvdId=Android_TV_1080p_API_23
abi.type=x86
avd.ini.displayname=Android TV (1080p) API 23
disk.dataPartition.size=200M
hw.accelerometer=no
hw.audioInput=yes
hw.battery=no
hw.camera.back=none
hw.camera.front=none
hw.cpu.arch=x86
hw.dPad=yes
hw.device.hash2=MD5:f26df701fd74415b9a435e3e607b5d8a
hw.device.manufacturer=Google
hw.device.name=Android TV (1080p)
hw.gps=yes
hw.gpu.enabled=yes
hw.initialOrientation=landscape
hw.keyboard=yes
hw.keyboard.lid=yes
hw.lcd.density=320
hw.mainKeys=yes
hw.ramSize=1536
hw.sdCard=yes
hw.sensors.orientation=no
hw.sensors.proximity=no
hw.trackBall=no
image.sysdir.1=system-images\android-23\android-tv\x86\
runtime.network.latency=none
runtime.network.speed=full
runtime.scalefactor=0.5
sdcard.path=C:\...\Android_TV_1080p_API_23.avd\sdcard.img
skin.dynamic=yes
skin.name=1920x1080
skin.path=1920x1080
snapshot.present=no
tag.display=Android TV
tag.id=android-tv
vm.heapSize=128

解决方案

I also had this problem, unable to solve it in API 23, but take an Emulator on 22 or 21 and your are good to go.

这篇关于Android的电视模拟器:无法上网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆