본문 바로가기
IT/ERROR

Android The color colors in values has no declaration in the base values folder; this can lead to crashes when the resource is queried in a configuration that does not match this qualifier

by TechTonic 2022. 8. 26.
반응형

안드로이드 스튜디오에서 컬러를 추가하기 위해 colors.xml 에 추가를 했는데 아래 에러가 발생되면서 구현부에서 사용하지 못하는 오류가 발생되었습니다.

 

The color "colors" in values has no declaration in the base values folder; this can lead to crashes when the resource is queried in a configuration that does not match this qualifier

 

안드로이드 스튜디오 내 캐시파일들로 인해 정상적으로 빌드되지 못한 듯합니다.

캐시 정리 후 재 실행하면 정상적으로 되니 아래 내용을 참고해서 해결하기 바랍니다.

 

  • Build > Clean Project

안드로이드 스튜디오 메뉴

 

  • File > Invalidate Caches.. > Invalidate and Restart

캐시 제거
캐시 제거 기능

 

안드로이드 스튜디오 재 실행 후 정상적으로 실행됨을 확인할 수 있습니다.

반응형

댓글