bulid가 정상적으로 수행 되지 않을때 gradle을 원하는 버전으로 바꿔보자

Project_Name > gradle > gradle-wrapper.properties 파일에서 distributionUrl 의 버전을 변경한다.

변경 후 에는 새로운 버전을 받을 수 있도록 Load Gradle Changes 버튼을 누르거나 Auto Reload Setting을 진행한다.

Gradle Releases 참고(https://gradle.org/releases/)

Command 명령은 프로젝트 폴더에서 아래와 같이 진행할 수 있다.

$ ./gradlew -v

Welcome to Gradle 4.10.2!

Here are the highlights of this release:
 - Incremental Java compilation by default
 - Periodic Gradle caches cleanup
 - Gradle Kotlin DSL 1.0-RC6
 - Nested included builds
 - SNAPSHOT plugin versions in the `plugins {}` block

For more details see https://docs.gradle.org/4.10.2/release-notes.html


------------------------------------------------------------
Gradle 4.10.2
------------------------------------------------------------

Build time:   2018-09-19 18:10:15 UTC
Revision:     b4d8d5d170bb4ba516e88d7fe5647e2323d791dd

Kotlin DSL:   1.0-rc-6
Kotlin:       1.2.61
Groovy:       2.4.15
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          11.0.14 (Oracle Corporation 11.0.14+8-LTS-263)
OS:           Mac OS X 11.6 x86_64
$ ./gradlew wrapper --gradle-version 7.0.2
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

BUILD SUCCESSFUL in 3s
1 actionable task: 1 executed
$ ./gradlew -version                      

Welcome to Gradle 7.0.2!

Here are the highlights of this release:
 - File system watching enabled by default
 - Support for running with and building Java 16 projects
 - Native support for Apple Silicon processors
 - Dependency catalog feature preview

For more details see https://docs.gradle.org/7.0.2/release-notes.html


------------------------------------------------------------
Gradle 7.0.2
------------------------------------------------------------

Build time:   2021-05-14 12:02:31 UTC
Revision:     1ef1b260d39daacbf9357f9d8594a8a743e2152e

Kotlin:       1.4.31
Groovy:       3.0.7
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          11.0.14 (Oracle Corporation 11.0.14+8-LTS-263)
OS:           Mac OS X 11.6 x86_64

IntelliJ Auto-Reload 설정

Any changes 선택 후 Apply

Translate