android error error retrieving parent for item no resource found that matches the given name
Android/공개글 2014. 12. 2. 03:00누군가에게 받은 안드로이드 프로젝트를 이클립스에서 임포트를 했더니 다음과 같은 에러가 발생하였다.
android error error retrieving parent for item no resource found that matches the given name ~~~
styles.xml파일 내의 Theme.AppCompat 으로 시작하는 값들을 찾을 수 없어서 에러가 발생하는 것으로 보인다.
해결 방법 :
프로젝트 우클릭 -> Properties -> Android 에 들어간 뒤,
Library 항목에 있는 기존의 레퍼런스들을 Remove 시켜주자. (빨간색 X표로 표시가 되어 있을 것이다)
그리고 Add 버튼을 눌러 자신의 appcompat_v7 프로젝트를 등록시켜주면 된다.
OK 누른 후 Apply.
추가 팁)
Apply 후 styles.xml에서 더이상 에러가 발생하시 않으나 Console창에 Jar mismatch! 라는 에러문구가 등장한다면
해당 프로젝트의 libs 폴더 안의 android-support-v4.jar를 삭제해주면 된다. (나의 경우)
'Android > 공개글' 카테고리의 다른 글
failed to rename directory unable to resolve target (0) | 2014.12.27 |
---|---|
SpeechRecognizer should be used only from the application's main thread (0) | 2014.12.21 |
java.net.ConnectException: failed to connect to: connect failed: EHOSTUNREACH (No route to host) (1) | 2014.11.29 |
android sqlite no such table (3) | 2014.11.17 |
cygwin 설치 없이 ndk를 사용해보자 (5) | 2014.09.28 |