Table of Contents
Here’s the way I installed the latest gradle into Ubuntu.
Story
The gradle version in Ubuntu repository is 1.4. The command of gradle version 1.4 is different from gradle version 2. For example, gradle init
raise error in version 1.4, but not in version 2. Prevailed documents are on the bases of gradle version 2, so I had to install gradle 2 into my computer, ubuntu.
Environment
- Ubuntu 14.04.3 LTS
Installation
Uninstall Existing gradle
Uninstall existing gradle to prevent confusing.
Add Repository
Add gradle repository I use with apt command.
Then, the following output are shown and you will be asked to continue or not, press Enter end proceed.
gpg
でキーが作成されます。
After adding the repository, update cache of repositories.
Install gradle
First, check packages of gradle.
In my environment, package list were like the following.
Then I installed gradle-2.10.