안드로이드 개발자의 창고
[안드로이드 스튜디오] Can not extract resource from com.android.aaptcompiler. 오류 해결 본문
오류 해결
[안드로이드 스튜디오] Can not extract resource from com.android.aaptcompiler. 오류 해결
Wise-99 2023. 6. 28. 18:30
강의를 못따라가서 복붙하다가 발견한 오류...
달랑 저 문장 하나만 있어서 어디서 오류가 난건지 확인이 되지 않았다.
그래서 왼쪽 상단에 ! 모양의 버튼을 눌러봤더니
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed (Failed to compile values resource file ...
파일의 경로는 나와있지만 내가 복붙했던 파일이 아니었다.
그래서 다시 처음부터 살펴보는데
theme.xml을 보니 태그가 이상하게 꼬여있었다.
</style> 태그가 밑에서 두번째 줄에 있어야 됐는데 이게 꼬이면서 앱 자체가 실행이 되지 않았다.
</style> 태그를 수정하여 맞춰줬더니 해결되었다.
이 밖에도 다른 xml 파일에서 중복 코드가 발생하거나 하면 생기는 오류 같다.