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, but the problem is that it doesn't accept my Gradle home:

~/Documents/idea-IC-141.2735.5/bin$ whereis gradle
gradle: /usr/bin/gradle /usr/share/gradle /usr/share/man/man1/gradle.1.gz
What's wrong?
Edit: now I can choose the first option Use default gradle wrapper (recommended)
Probably because I restarted, I don't know
java intellij gradle
add a comment |
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, but the problem is that it doesn't accept my Gradle home:

~/Documents/idea-IC-141.2735.5/bin$ whereis gradle
gradle: /usr/bin/gradle /usr/share/gradle /usr/share/man/man1/gradle.1.gz
What's wrong?
Edit: now I can choose the first option Use default gradle wrapper (recommended)
Probably because I restarted, I don't know
java intellij gradle
What is IntellIJ says when it doesn't accept ? Any alert or error message. Add this information to your answer because the problem is not obvious from screenshot that you attached
– Anton Dozortsev
Nov 1 '15 at 10:00
You are right, I substituted the screenshot
– elect
Nov 1 '15 at 13:48
Did you tried my suggestion? Please give me response on my answer. If it will be unhelpful for you I just remove it.
– Anton Dozortsev
Nov 5 '15 at 19:35
Not yet, RL priorities came in, I'll tell you asap
– elect
Nov 9 '15 at 14:06
add a comment |
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, but the problem is that it doesn't accept my Gradle home:

~/Documents/idea-IC-141.2735.5/bin$ whereis gradle
gradle: /usr/bin/gradle /usr/share/gradle /usr/share/man/man1/gradle.1.gz
What's wrong?
Edit: now I can choose the first option Use default gradle wrapper (recommended)
Probably because I restarted, I don't know
java intellij gradle
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, but the problem is that it doesn't accept my Gradle home:

~/Documents/idea-IC-141.2735.5/bin$ whereis gradle
gradle: /usr/bin/gradle /usr/share/gradle /usr/share/man/man1/gradle.1.gz
What's wrong?
Edit: now I can choose the first option Use default gradle wrapper (recommended)
Probably because I restarted, I don't know
java intellij gradle
java intellij gradle
edited Nov 1 '15 at 13:46
asked Oct 31 '15 at 11:48
elect
2611417
2611417
What is IntellIJ says when it doesn't accept ? Any alert or error message. Add this information to your answer because the problem is not obvious from screenshot that you attached
– Anton Dozortsev
Nov 1 '15 at 10:00
You are right, I substituted the screenshot
– elect
Nov 1 '15 at 13:48
Did you tried my suggestion? Please give me response on my answer. If it will be unhelpful for you I just remove it.
– Anton Dozortsev
Nov 5 '15 at 19:35
Not yet, RL priorities came in, I'll tell you asap
– elect
Nov 9 '15 at 14:06
add a comment |
What is IntellIJ says when it doesn't accept ? Any alert or error message. Add this information to your answer because the problem is not obvious from screenshot that you attached
– Anton Dozortsev
Nov 1 '15 at 10:00
You are right, I substituted the screenshot
– elect
Nov 1 '15 at 13:48
Did you tried my suggestion? Please give me response on my answer. If it will be unhelpful for you I just remove it.
– Anton Dozortsev
Nov 5 '15 at 19:35
Not yet, RL priorities came in, I'll tell you asap
– elect
Nov 9 '15 at 14:06
What is IntellIJ says when it doesn't accept ? Any alert or error message. Add this information to your answer because the problem is not obvious from screenshot that you attached
– Anton Dozortsev
Nov 1 '15 at 10:00
What is IntellIJ says when it doesn't accept ? Any alert or error message. Add this information to your answer because the problem is not obvious from screenshot that you attached
– Anton Dozortsev
Nov 1 '15 at 10:00
You are right, I substituted the screenshot
– elect
Nov 1 '15 at 13:48
You are right, I substituted the screenshot
– elect
Nov 1 '15 at 13:48
Did you tried my suggestion? Please give me response on my answer. If it will be unhelpful for you I just remove it.
– Anton Dozortsev
Nov 5 '15 at 19:35
Did you tried my suggestion? Please give me response on my answer. If it will be unhelpful for you I just remove it.
– Anton Dozortsev
Nov 5 '15 at 19:35
Not yet, RL priorities came in, I'll tell you asap
– elect
Nov 9 '15 at 14:06
Not yet, RL priorities came in, I'll tell you asap
– elect
Nov 9 '15 at 14:06
add a comment |
1 Answer
1
active
oldest
votes
In Gradle home option you need provide path to folder where your Gradle distribution was installed.
To determine the Gradle home location of your Gradle installation:
Create build.gradle containing:
task getHomeDir << {
println gradle.gradleHomeDir
}
Run
gradle getHomeDir
Reference: Setting up Gradle Plugin For IntelliJ
I get21.26.31: Executing external task 'getHomeDir'... :getHomeDir /home/elect/.gradle/wrapper/dists/gradle-2.2-all/1vevkra640w3rb9hkuw50q5we/gradle-2.2it seems it falls back using the default gradle wrapper
– elect
Nov 23 '15 at 20:27
@elect So anyway did you resolve your problem?
– Anton Dozortsev
Nov 24 '15 at 19:01
2
Just by selecting "use default gradle wrapper"..
– elect
Nov 24 '15 at 21:18
The step linked works. Just make sure to not have a space at the end.
– Christian Bongiorno
Jul 5 '17 at 22:36
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f692218%2fintellij-idea-community-edition-cannot-set-gradle-home%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In Gradle home option you need provide path to folder where your Gradle distribution was installed.
To determine the Gradle home location of your Gradle installation:
Create build.gradle containing:
task getHomeDir << {
println gradle.gradleHomeDir
}
Run
gradle getHomeDir
Reference: Setting up Gradle Plugin For IntelliJ
I get21.26.31: Executing external task 'getHomeDir'... :getHomeDir /home/elect/.gradle/wrapper/dists/gradle-2.2-all/1vevkra640w3rb9hkuw50q5we/gradle-2.2it seems it falls back using the default gradle wrapper
– elect
Nov 23 '15 at 20:27
@elect So anyway did you resolve your problem?
– Anton Dozortsev
Nov 24 '15 at 19:01
2
Just by selecting "use default gradle wrapper"..
– elect
Nov 24 '15 at 21:18
The step linked works. Just make sure to not have a space at the end.
– Christian Bongiorno
Jul 5 '17 at 22:36
add a comment |
In Gradle home option you need provide path to folder where your Gradle distribution was installed.
To determine the Gradle home location of your Gradle installation:
Create build.gradle containing:
task getHomeDir << {
println gradle.gradleHomeDir
}
Run
gradle getHomeDir
Reference: Setting up Gradle Plugin For IntelliJ
I get21.26.31: Executing external task 'getHomeDir'... :getHomeDir /home/elect/.gradle/wrapper/dists/gradle-2.2-all/1vevkra640w3rb9hkuw50q5we/gradle-2.2it seems it falls back using the default gradle wrapper
– elect
Nov 23 '15 at 20:27
@elect So anyway did you resolve your problem?
– Anton Dozortsev
Nov 24 '15 at 19:01
2
Just by selecting "use default gradle wrapper"..
– elect
Nov 24 '15 at 21:18
The step linked works. Just make sure to not have a space at the end.
– Christian Bongiorno
Jul 5 '17 at 22:36
add a comment |
In Gradle home option you need provide path to folder where your Gradle distribution was installed.
To determine the Gradle home location of your Gradle installation:
Create build.gradle containing:
task getHomeDir << {
println gradle.gradleHomeDir
}
Run
gradle getHomeDir
Reference: Setting up Gradle Plugin For IntelliJ
In Gradle home option you need provide path to folder where your Gradle distribution was installed.
To determine the Gradle home location of your Gradle installation:
Create build.gradle containing:
task getHomeDir << {
println gradle.gradleHomeDir
}
Run
gradle getHomeDir
Reference: Setting up Gradle Plugin For IntelliJ
edited Dec 19 at 0:03
muru
1
1
answered Nov 1 '15 at 14:18
Anton Dozortsev
984819
984819
I get21.26.31: Executing external task 'getHomeDir'... :getHomeDir /home/elect/.gradle/wrapper/dists/gradle-2.2-all/1vevkra640w3rb9hkuw50q5we/gradle-2.2it seems it falls back using the default gradle wrapper
– elect
Nov 23 '15 at 20:27
@elect So anyway did you resolve your problem?
– Anton Dozortsev
Nov 24 '15 at 19:01
2
Just by selecting "use default gradle wrapper"..
– elect
Nov 24 '15 at 21:18
The step linked works. Just make sure to not have a space at the end.
– Christian Bongiorno
Jul 5 '17 at 22:36
add a comment |
I get21.26.31: Executing external task 'getHomeDir'... :getHomeDir /home/elect/.gradle/wrapper/dists/gradle-2.2-all/1vevkra640w3rb9hkuw50q5we/gradle-2.2it seems it falls back using the default gradle wrapper
– elect
Nov 23 '15 at 20:27
@elect So anyway did you resolve your problem?
– Anton Dozortsev
Nov 24 '15 at 19:01
2
Just by selecting "use default gradle wrapper"..
– elect
Nov 24 '15 at 21:18
The step linked works. Just make sure to not have a space at the end.
– Christian Bongiorno
Jul 5 '17 at 22:36
I get
21.26.31: Executing external task 'getHomeDir'... :getHomeDir /home/elect/.gradle/wrapper/dists/gradle-2.2-all/1vevkra640w3rb9hkuw50q5we/gradle-2.2 it seems it falls back using the default gradle wrapper– elect
Nov 23 '15 at 20:27
I get
21.26.31: Executing external task 'getHomeDir'... :getHomeDir /home/elect/.gradle/wrapper/dists/gradle-2.2-all/1vevkra640w3rb9hkuw50q5we/gradle-2.2 it seems it falls back using the default gradle wrapper– elect
Nov 23 '15 at 20:27
@elect So anyway did you resolve your problem?
– Anton Dozortsev
Nov 24 '15 at 19:01
@elect So anyway did you resolve your problem?
– Anton Dozortsev
Nov 24 '15 at 19:01
2
2
Just by selecting "use default gradle wrapper"..
– elect
Nov 24 '15 at 21:18
Just by selecting "use default gradle wrapper"..
– elect
Nov 24 '15 at 21:18
The step linked works. Just make sure to not have a space at the end.
– Christian Bongiorno
Jul 5 '17 at 22:36
The step linked works. Just make sure to not have a space at the end.
– Christian Bongiorno
Jul 5 '17 at 22:36
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f692218%2fintellij-idea-community-edition-cannot-set-gradle-home%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What is IntellIJ says when it doesn't accept ? Any alert or error message. Add this information to your answer because the problem is not obvious from screenshot that you attached
– Anton Dozortsev
Nov 1 '15 at 10:00
You are right, I substituted the screenshot
– elect
Nov 1 '15 at 13:48
Did you tried my suggestion? Please give me response on my answer. If it will be unhelpful for you I just remove it.
– Anton Dozortsev
Nov 5 '15 at 19:35
Not yet, RL priorities came in, I'll tell you asap
– elect
Nov 9 '15 at 14:06