You have to install SKDMAN
https://gist.github.com/shimesaba-type0/841efd23d1a7678ba8f91a107d8dcc7f
sdk install gradle
result
$ sdk install gradle
Downloading: gradle 5.5.1
In progress...
######################################################################################################## 100.0%
Installing: gradle 5.5.1
Done installing!
Setting gradle 5.5.1 as default.
check
gradle -v
result
Welcome to Gradle 5.5.1!
Here are the highlights of this release:
- Kickstart Gradle plugin development with gradle init
- Distribute organization-wide Gradle properties in custom Gradle distributions
- Transform dependency artifacts on resolution
For more details see https://docs.gradle.org/5.5.1/release-notes.html
------------------------------------------------------------
Gradle 5.5.1
------------------------------------------------------------
Build time: 2019-07-10 20:38:12 UTC
Revision: 3245f748c7061472da4dc184991919810f7935a5
Kotlin: 1.3.31
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.14 compiled on March 12 2019
JVM: 1.8.0_221 (Oracle Corporation 25.221-b11)
OS: Linux 4.18.0-25-generic amd64
$
Completed.