Android TCP 클라이언트와 서버 통신을 이해하려고하는데, here 및 오류 here으로 설명되어 있습니다. 나는 항상 "R cannot be resolved to a variable"
을 얻고 아래처럼 사용한다. layout
및 id
과 같은 메서드가있는이 R 객체는 무엇입니까?Android & Java : 'R'이라는 이상한 오브젝트는 무엇입니까?
setContentView(R.layout.main);
textDisplay = (TextView) this.findViewById(R.id.text1);
p.s. 코드는 GitHub tcpcommclient
및 tcpcommserver
here에서 찾을 수 있습니다.
가능한 중복 (http://stackoverflow.com/questions/6804053/understand-the 또한
, 당신은 프로젝트 (- - 클린 클린 프로젝트 프로젝트)를 청소하려면 수도 -r-class-in-android) – Dharmendra