Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题所说。启动使用套接字的服务时出现此错误。怎么会?
因为您试图在主应用程序线程上使用套接字,可能来自onStartCommand(). 请在后台线程上进行网络 I/O。
onStartCommand()