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
0answers
32 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://...
0
votes
0answers
10 views

Grails compile: General error during conversion: …duplicate methods

Grails 4 project that used to compile and behave normally. After upgrading the development box to Ubuntu 20.04 I get this error on grails compile after doing grails clean: General error during ...
0
votes
0answers
46 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—...
0
votes
0answers
154 views

Flutter project won't compile in Ubuntu 20.10

I just reinstalled my laptop with Ubuntu 20.10 and Android Studio 4.1. Now, my Flutter app won't compile. To be fair, the last time I tried to build the apk it failed on Ubutnu 20.04, but I didn't ...
4
votes
1answer
1k 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 ...
1
vote
1answer
2k 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 ...
3
votes
0answers
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 ...
0
votes
0answers
2k 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 ...
1
vote
0answers
78 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 ...
1
vote
0answers
1k 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:...
1
vote
1answer
14k 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 ...
0
votes
1answer
2k 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: ...
0
votes
1answer
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 ...
4
votes
1answer
23k 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 ...
25
votes
5answers
48k 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....
53
votes
3answers
68k 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 ...
0
votes
1answer
337 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 ...
1
vote
1answer
4k 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-...
0
votes
0answers
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 ...
2
votes
2answers
117 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 ...
13
votes
0answers
5k 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 ...
0
votes
2answers
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 ...
1
vote
0answers
819 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 ...
1
vote
1answer
563 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.
1
vote
1answer
1k 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 ...
7
votes
1answer
30k 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, ...
0
votes
1answer
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 ...
1
vote
3answers
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, ...
1
vote
1answer
726 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 ...
0
votes
1answer
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/...
0
votes
1answer
582 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 ...
2
votes
3answers
23k 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 ...
4
votes
1answer
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 ...
64
votes
5answers
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?