

Next, you need to setup Gradle with PATH environment variable, Also make sure the variable is set after system reboot. Gradle has been configured on your system. You can use alternative directory like /opt. Generally, I used /usr/local directory for storing applications. Then extract the downloaded archive and place it to the proper location. sudo apt install default-jdkĪfter installation of Java, download the latest Gradle distribution release binary file from its official download page.

If you don’t have Java Development Kit installed on your system. OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing) OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1) also make sure you have installed JDK and JRE both. So first of all, Make sure you have Java installed on your system. Gradle required Java language for running on any operating system. You must have root or sudo privilege account access on Ubuntu 20.04 system.

Re-running this command with the -verbose flag may provide more information. Please include gradle in your path, or install Android Studio An error occurred while running subprocess cordova.Ĭordova.cmd build android exited with exit code 1. Could not find an installed version of Gradle either in Android Studio, or on your system to install the gradle wrapper. During installation and adding the Android platform to your Ionic application you may face the following issue in your terminal window:
