Android Studio/ Java Deprecated Gradle features were used in this...

Android Studio/ Java Deprecated Gradle features were used in this...

728x90

반응형

SMALL

안드로이드 스튜디오에서 자바로 main를 두고

어느 때와 다름없이 RunTime 버튼을 눌렀는데

다음과 같은 오류가 떴다.

728x90

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

빌드 시에 deprecated 된 기능들이 있어서

현재의 gradle과 호환이 맞지 않다는 이야기이다.

그 아래에

--warning mode all을 사용하라고 명시까지 해주었다.

그렇다면, 이 녀석을 어디서 사용할까?

맥은 preferences로 윈도는 settings로

가게 되면,

반응형

Build, Execution, Deployment -> Compiler를

들어가면, Command-line Options 입력창에

--warning-mode=all --stacktrace라고 입력해주면 된다.

그 후에

file -> Invalidate Caches / Restart를 눌러

캐시를 초기화 하고 리스타트를 해주면,

정상 작동을 하는 것을 볼 수 있다.

SMALL

728x90

반응형

LIST

from http://daldalhanstory.tistory.com/279 by ccl(A) rewrite - 2021-11-26 14:01:51