💻IT
[Gradle][Error] compile 사용 시 No candidates found for method call 문제
gom20
2021. 11. 13. 20:04
문제
아래와 같이 compile group 을 추가하려고 하는데, No candidates found for method call 오류가 발생했다.
당연히 reload 시 Exception이 발생한다.
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method compile() for arguments
해결
찾아보니 gradle 3.0부터 compile 이 deprecated되었다고 한다.
compile을 implementation 으로 변경해서 오류 해결.