How To Install libgradle-android-plugin-java on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libgradle-android-plugin-java
on Ubuntu 20.04.
What is libgradle-android-plugin-java
libgradle-android-plugin-java is:
The Android build system uses the Android Plugin for Gradle to support building Android applications with the Gradle build toolkit. The plugin runs independent of Android Studio so the plugin and the Gradle build system can be updated independently of Android Studio. You can build your Android applications from within Android Studio or from the command line on your machine or on machines where Android Studio is not installed (such as continuous integration servers).
This package does not include gradle-experimental.jar because its dependencies are hard to resolve in Debian.
To build an Android application using the plugin in Debian, install
android-debian-helper
and use the init.gradle provided by that package.
There are three methods to install libgradle-android-plugin-java
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libgradle-android-plugin-java Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libgradle-android-plugin-java
using apt-get
by running the following command:
sudo apt-get -y install libgradle-android-plugin-java
Install libgradle-android-plugin-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libgradle-android-plugin-java
using apt
by running the following command:
sudo apt -y install libgradle-android-plugin-java
Install libgradle-android-plugin-java Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libgradle-android-plugin-java
using aptitude
by running the following command:
sudo aptitude -y install libgradle-android-plugin-java
How To Uninstall libgradle-android-plugin-java on Ubuntu 20.04
To uninstall only the libgradle-android-plugin-java
package we can use the following command:
sudo apt-get remove libgradle-android-plugin-java
Uninstall libgradle-android-plugin-java And Its Dependencies
To uninstall libgradle-android-plugin-java
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libgradle-android-plugin-java
Remove libgradle-android-plugin-java Configurations and Data
To remove libgradle-android-plugin-java
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libgradle-android-plugin-java
Remove libgradle-android-plugin-java configuration, data, and all of its dependencies
We can use the following command to remove libgradle-android-plugin-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libgradle-android-plugin-java
References
Summary
In this tutorial we learn how to install libgradle-android-plugin-java
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.