How To Install libgradle-android-plugin-java on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 462 words
Introduction
In this tutorial we learn how to install libgradle-android-plugin-java
on Ubuntu.
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. 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
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, 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 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
Dependencies
libgradle-android-plugin-java have the following dependencies:
- android-platform-tools-base
- antlr3
- antlr4
- libandroid-databinding-java
- libandroid-ddms-java
- libandroid-layoutlib-api-java
- libandroid-tools-analytics-library-java
- libandroid-tools-common-java
- libandroid-tools-sdklib-java
- libasm-java
- libautomaton-java
- libbatik-java
- libbcpkix-java
- libbcprov-java
- libcglib-java
- libecj-java
- libgradle-core-java
- libgradle-plugins-java
- libgoogle-gson-java
- libguava-java
- libjacoco-java
- libjavawriter-java
- libjdom1-java
- libjna-java
- libjna-platform-java
- libjoptsimple-java
- liblog4j1.2-java
- liblombok-ast-java
- liboro-java
- proguard-cli
References
Summary
In this tutorial we learn how to install libgradle-android-plugin-java
package on Ubuntu using different package management tools: apt, apt-get and aptitude.