안드로이드/개발중 알게된점

build-logic rebuild project 시 에러 관련

최효식 2024. 4. 21. 22:44

이구아나 버전으로 업데이트를 하고 clean project 후 rebuild project 를 했는데 오류가 발생했습니다.

 

Unable to make progress running work. There are items queued for execution but none of them can be started.

 

 

 

해당 이슈는 buildSrc 또는 build-logic 을 적용한 프로젝트에서 발생할 수 있다고 합니다.

이와 관련하여 Gradle 팀이 적극적으로 솔루션을 개발하면서 문제가 해결될 예정입니다.

 

일단 이미지에서 문제가 되는 build-logic:convention:testClasses 에 대해서 gradle 에서 excludedTask 하는 방식으로 해결을 할 수 있었습니다.

 

 

root project settings.gradle.kts 파일에 추가

 

// build-logic rebuild 시 에러 임시 해결
gradle.startParameter.excludedTaskNames.addAll(listOf(":build-logic:convention:testClasses"))

 

 

참조 : 링크1  링크2