Questions tagged [gradle]

a project automation tool that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language [DSL] instead of the more traditional XML form of declaring the project configuration.

Filter by
Sorted by
Tagged with
0 votes
1 answer
512 views

Installing Latest Openjdk and Gradle using package managers only

Im fairly new to developing using the java ecosystem of tools, but i have never experienced a language ecosystem that involves as much installation effort. My goal is to create a pico cli following ...
themassiveone's user avatar
0 votes
1 answer
3k views

Cannot uninstall Gradle on Ubuntu WSL

I installed Gradle at one time to do some Java, and I have since installed it on Windows and no longer need it on my WSL system. When I write gradle -v everything seems to be fine. However, when I ...
gordon_freeman's user avatar
1 vote
1 answer
4k views

How to upgrade Gradle to 6.7.1

I need to use gradle 6.7 and followed this advice trying to upgrade: sudo add-apt-repository ppa:cwchien/gradle sudo apt-get update sudo apt upgrade gradle which logs out among others: Get:1 http://...
kosmičák's user avatar
0 votes
0 answers
538 views

Is the Gradle version in Ubuntu 20.04 modified to support newer Java versions?

After upgrading to Ubuntu 20.04, I am now on Java 11.0.9.1 and Gradle 4.4.1 (the latter being over two years old and long superseded by the time 20.04 was released). This combination works fine—...
user149408's user avatar
  • 1,431
6 votes
1 answer
32k views

Gradle JAVA_HOME is set to an invalid directory

I have tried and looked at the past Gradle Java_HOME questions, however none of the options seems to work. I followed this website to install Gradle. However, all the Gradle commands I run result in ...
T-K's user avatar
  • 63
1 vote
1 answer
4k views

Exception: Gradle task assembleDebug failed with exit code 1

I just started with app development with flutter, but am not even able to run the test app. This is what come on console : Launching lib/main.dart on AOSP on IA Emulator in debug mode... Running ...
Ashish Sharma's user avatar
3 votes
0 answers
2k views

How to fix Android Studio installation and Gradle errors?

I have installed Android Studio with the idea of developing applications with Cordova and Phonegap thanks to the help of my partner @karel who showed me this question: How to install Android Studio on ...
Miguel Espeso's user avatar
1 vote
1 answer
3k views

docker: Got permission denied while trying to connect to the Docker daemon socket

on the Ubuntu 18.04 system I have cloned a project and to run it needs gradle but at running the gradle command gradle swiplRun I get the following error Task :dockerRun FAILED docker: Got ...
Amir-Mousavi's user avatar
1 vote
0 answers
156 views

How can I run a gradle build across multiple servers?

Our team has a gradle multiproject consisting of well over 100 projects and growing. This causes two problems: The box we run gradle build on does not have enough disk space to store all the ...
backcab's user avatar
  • 111
2 votes
0 answers
2k views

Could not load hsdis-arm.so; library not loadable; PrintAssembly is disabled

I am using a beaglebone black with ubuntu bionic(armv7hf) and I'm trying to run: gradle However, I am getting the following error # # A fatal error has been detected by the Java Runtime Environment:...
Gustavo Rezende's user avatar
3 votes
1 answer
32k views

Command 'gradle' not found. How can I run the gradle command from any directory?

I am trying to learn gradle build. I followed these instructions on gradle.org. To verify it i am issuing command. gradle -v I get this output: Command 'gradle' not found, but can be installed ...
Jeeva's user avatar
  • 155
0 votes
2 answers
3k views

Ubuntu/Cordova/Android SDK: AVD Target not showing

A Web Developer trying to create android app using Ubuntu 18.04 with Cordova (v.8.0.0) requirements show: Android Studio project detected Requirements check results for android: Java JDK: ...
jlcolon's user avatar
0 votes
1 answer
1k views

What are android SDK and Gradle path?

I installed android sdk with terminal and it installed completely and now I need its path. There was no "android/sdk" folder in home. I searched and found sdk in /usr/lib/android-sdk. I also installed ...
Esmail Jamshidiasl's user avatar
5 votes
1 answer
43k views

How to install gradle and gradlew?

I'm having a problem installing gradlew... I can use the gradle command by simply typing "gradle" in the Terminal, but "gradlew" doesn't do anything. I installed gradle using sudo apt install gradle ...
CottonTheButton's user avatar
27 votes
5 answers
69k views

17.10 openjdk and oracle jdk 8 and 9 the trustAnchors parameter must be non-empty

I've just installed 17.10 in a fresh VM. Trying to set up a development environment, when I run gradle or ./gradlew I get the following error: * What went wrong: Error resolving plugin [id: 'com....
junglie85's user avatar
  • 469
70 votes
3 answers
112k views

How do I upgrade Gradle?

This shows that Gradle is up to date: thufir@doge:~$ sudo apt install gradle Reading package lists... Done Building dependency tree Reading state information... Done gradle is already the ...
Thufir's user avatar
  • 4,551
0 votes
1 answer
432 views

Android Studio error after installing

I am using ubuntu 16.04 and after installing android studio and initializing project it is showing error failed to load zip file Gradle dependencies cache may be corrupt clicking on the blue link is ...
Adhesh's user avatar
  • 1
1 vote
1 answer
5k views

Package is installed and is not detected. (gradle)

I installed gradle by typical way: sudo apt install gradle Reading package lists... Done Building dependency tree Reading state information... Done gradle is already the newest version (3.5-...
Daniel's user avatar
  • 387
0 votes
0 answers
2k views

Android Studio automatically starts downloading gradle-3.3-all.zip file from the gradle services and stops when launching a project

When i open a project in android studio in my ubuntu terminal, it automatically starts downloading gradle-3.3-all.zip file from services.gradle.org and hangs my computer. Can someone please solve the ...
Chintan Mehta's user avatar
2 votes
2 answers
164 views

Why is $HOME being set incorrectly

I'm stuck in a login loop because: My $HOME variable is being set incorrectly when I login. I logged into a shell via ttty1 and echo $HOME returned /usr/local/gradle .bashrc or .bash_profile isn't ...
pyler's user avatar
  • 181
17 votes
1 answer
8k views

Gradle or Android Studio freezes Ubuntu

I've got a problem with my Android Studio/Gradle regularly freezing my entire system. What happens? I work on my Android Studio and at first, everything is ok. For approx 5 - 10 builds/deploys ...
Miroslav's user avatar
  • 271
0 votes
2 answers
5k views

Why building of gradle can't be finished?

I have everything updated to latest versions. I checked JDK - it works, I have installed these packages: lib32z1 lib32ncurses5-dev lib32stdc++6 libncurses5:i386 libstdc++6:i386 zlib1g:i386. When I ...
R S's user avatar
  • 2,369
1 vote
0 answers
852 views

android studio -gradle build not finishing

I installed android studio for the first time and tried to use windows installed java sdk here but that produced many errors..So i deleted that folder and installed the java sdk for ubuntu from sdk ...
anonymous's user avatar
  • 111
1 vote
1 answer
698 views

Intellij Idea keep deleting project files

I have a project, it is a Gradle project, and everytime I close Intellij it deletes the src files, they still exist in the directory just not in the idea project.
JPHamlett's user avatar
  • 113
1 vote
1 answer
2k views

Cannot download zip files

I cannot download from this link https://services.gradle.org/distributions/gradle-2.4-all.zip in Firefox and Chrome in my Ubuntu 15.10. Actually, I faced this problem in Android Studio while opening a ...
ashubuntu's user avatar
  • 554
7 votes
1 answer
32k views

Intellij Idea Community Edition, cannot set `Gradle home`

I installed Gradle from the repository. Then I downloaded Intellij Idea Community Edition from the official website and installed it. I set the Java JDK and now I am trying to open a Gradle Project, ...
elect's user avatar
  • 521
0 votes
1 answer
1k views

Android Studio ignoring environment variables

I had an issue with Gradle which I have fixed by adding export JAVA_OPTS="-Djava.ext.dirs=" to my .bashrc (also tried adding to .profile and /etc/environment but to no avail) Gradle now functions ...
chaybs's user avatar
  • 13
1 vote
3 answers
5k views

Gradle executing tasks runs forever

Recently, I've downloaded latest android-studio for Ubuntu. The problem is, it takes forever when it start compiling. The error message says, Gradle executing tasks But, when i stop android studio, ...
Yuva Raj's user avatar
  • 111
1 vote
1 answer
743 views

Can't log in after trying to set environment variables

So I added a file called gradle.sh to /etc/profile.d/ that had the following lines: export GRADLE_HOME=/home/gradle/ export PATH=$PATH:$GRADLE_HOME/bin I restarted my machine, so that it would pick ...
Scuba Steve's user avatar
0 votes
1 answer
2k views

How to build openjfx on ubuntu 14.04?

I have been trying to build openjfx on Ubuntu 14.04 but i'm receiving error gradle tasks :buildSrc:clean :buildSrc:generateGrammarSource :buildSrc:compileJava /home/nika/openjfx/rt/buildSrc/src/main/...
DeepSidhu1313's user avatar
0 votes
1 answer
603 views

Libgdx, gradle integration, drag and drop

I'm trying to install the Gradle plugin for Eclipse in Ubuntu 14.04 from this link https://marketplace.eclipse.org/content/gradle-integration-eclipse But i'm unable to drag and drop to Eclipse. How ...
karajrish's user avatar
2 votes
3 answers
27k views

Gradle finds wrong JAVA_HOME even though it's correctly set ubuntu 13.10

I have just installed gradle from the terminal sudo apt-get install gradle After finishing am trying to run the command gradle -v I get the following error ERROR: JAVA_HOME is set to an invalid ...
indago's user avatar
  • 121
4 votes
1 answer
6k views

Gradle compiling slows down my computer

The responsiveness is really bad on a newly installed Ubuntu 14.04 LTS. Here's the specs of my laptop: Quadcore Intel i7-4600U CPU @ 2.10GHz 12GB Ram 1TB Samsung EVO SSD And when gradle is ...
nubela's user avatar
  • 227
64 votes
5 answers
52k views

Gradle in Ubuntu for Launchpad

It appears that Ubuntu doesn't have new versions of Gradle in their repositories for some reason. I need it for a project that will be build by Launchpad. What should I do about this?
Marlinc's user avatar
  • 771