어제 오후부터 머리를 아프게 만들었던 에러를 해결했다.
상황
어제 오전까지 안드로이드 빌드에 성공했는데 오후부터 갑자기 gradle의 project configure 과정에서 다음과 같은 에러가 뜨면서 실패했다.
...
[Fatal Error] {라이브러리1}.pom:3:10: doctype이 이미 표시되었습니다.
[Fatal Error] {라이브러리2}.pom:3:10: doctype이 이미 표시되었습니다.
...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
> Could not resolve com.facebook.fresco:fresco:1.+.
Required by:
project :app
> Failed to list versions for com.facebook.fresco:fresco.
> Unable to load Maven meta-data from https://devrepo.kakao.com/nexus/content/groups/public/com/facebook/fresco/fresco/maven-metadata.xml.
> org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 103; "_e" 엔티티에 대한 참조는 ';' 구분자로 끝나야 합니다.
해결책
[프로젝트]/android/build.gradle의 allprojects - repositories 내의
maven { url 'https://devrepo.kakao.com/nexus/content/groups/public/' }
을
maven { url 'https://repo.maven.apache.org/maven2' }
로 고치자 수정되었다. 따로 시도해보지는 않았지만 유효한 다른 maven 레포지토리 url이라면 성공할 것이다.
해결 과정
추후 작성 예정