ここに示されている Android TCP クライアントとサーバーの通信を理解しようとしています。私はいつも取得し"R cannot be resolved to a variable"、以下のように使用されます。layoutやなどのメソッドを持つこの R オブジェクトは何idですか?
setContentView(R.layout.main);
textDisplay = (TextView) this.findViewById(R.id.text1);
Ps コードは GitHubtcpcommclientとtcpcommserver hereにあります。