【发布时间】:2012-11-04 06:34:45
【问题描述】:
我正在尝试了解 Android TCP 客户端和服务器通信,图示为here 和错误here。我一直得到"R cannot be resolved to a variable",它的用法如下。这个具有layout 和id 等方法的R 对象是什么?
setContentView(R.layout.main);
textDisplay = (TextView) this.findViewById(R.id.text1);
附注您可以在 GitHub tcpcommclient 和 tcpcommserver here 中找到代码。
【问题讨论】: