티스토리 뷰

Android/Java TIP

R.java can't find

이주성 2013. 7. 25. 15:29

제목 그대로다. android SDK Manager에서 SDK Platform-Tools를 업데이트 받고 Eclipse로 들어갔더니 ADT를 업데이트 받으라고 해서 업데이트 받았다. 그런데 그다음부터 gen폴더, R.java를 지우면 자동으로 recreating안하고 에러만 난다. 모든  R을 가르키고 있는 코드는 에러메세지를 토해낸다. 181818 왜그런지 찾으러 구글을 1시간을 돌아다녔다. ㅠㅜ;


그런데 아래처럼 나랑 똑같은 케이스가 있더군.. ADT버전이 16인데 SDK Platform tools와 SDK Build-tools의 버전이 호환이 안되서 생긴문제다. 해결책은 SDK Manager로 다시 가서 업데이트를 받으면 된다.

I had the same issue today after upgrading my SDK to v22 and ADT to the newer version. Apparently my SDK Manager didn't detect there were also changes to the SDK Platform-Tools and the newly introduced SDK Build-tools so it didn't upgrade tools, causing my SDK/ADT bundle to not generate contents of the /gen folder within Eclipse.


I had to go back to the SDK Manager after upgrading both SDK and ADT so it would offer me the options to install/update SDK Platform-tools to 17 (from 16 I had) and SDK Build-tools (also 17

'Android > Java TIP' 카테고리의 다른 글

apk decompile  (0) 2013.10.15
리플렉션 (reflection)  (0) 2013.09.16
Volatile and Synchronized  (0) 2013.08.14
JD-Eclipse  (0) 2013.02.05
Java, Javac  (0) 2013.02.04
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함