본문 바로가기

JAVA/ANDROID

[ANDROID] WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. 에러 해결 방법

[ANDROID] WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. 

- 에러 해결 방법






안드로이드 3.0 버전으로 업데이트 한 후, 평소에 작동하던 코드가 아래와 같은 에러가 떳습니다.

굉장히 단순한 문제의 에러입니다.







Dependencies 에서 compile 로 선언하여 외부 라이브러리를 사용하였었는데요.



Compile --> implementation 으로 문법이 변경되었습니다.

해당 문구만 변경해주시면 자연스럽게 에러가 사라지게 됩니다.