getSystemService(Context.NSD_SERVICE)冻结5.0模拟器 [英] getSystemService(Context.NSD_SERVICE) freezes the 5.0 emulator

查看:586
本文介绍了getSystemService(Context.NSD_SERVICE)冻结5.0模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图执行以下命令行

NsdManager Mgr = (NsdManager)Ctxt.getSystemService(Context.NSD_SERVICE);

在Android 5.0模拟器(ARMv7a,Win64上)冻结模拟器。调试器永远不会到达下一行,模拟器并没有响应按钮,只能关闭。

in the Android 5.0 emulator (ARMv7a, on Win64) freezes the emulator. The debugger never reaches the next line, the emulator doesn't respond to buttons, can be only closed.

这既是一个后台线程,并从主人试图。上下文是一个活动。

Tried from both a background thread and from the main one. The context is an Activity.

在清单权限包括:


  • android.permission.INTERNET对

  • android.permission.ACCESS_WIFI_STATE

  • android.permission.CHANGE_WIFI_STATE

  • android.permission.CHANGE_WIFI_MULTICAST_STATE

在同一行工作在一个4.4模拟器和4.1设备上的预期。任何想法的5.0有什么不同和/或有什么错行了,好吗?有没有人尝试这个5.0设备上?

The same line works as expected on a 4.4 emulator and on a 4.1 device. Any ideas what's different on 5.0 and/or what's wrong with the line, please? Did anybody try this on a 5.0 device?

编辑:同英特尔模拟器

推荐答案

在NSD Android是各种破碎。甚至不要尝试,使其工作,回去JmDNS。

NSD in Android is all kinds of broken. Don't even try to make it work, go back to JmDNS.

以上是毁灭性的错误报告:

These are the damning bug reports:

HTTPS://$c$c.google。 COM / p /安卓/问题/细节?ID = 35585
的https://$c$c.google.com/p /安卓/问题/细节?ID = 39750

此外, NSD经理崩溃的Andr​​oid 4.2.2

这篇关于getSystemService(Context.NSD_SERVICE)冻结5.0模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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