Intellij Idea Community Edition, cannot set `Gradle home`












5














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:



enter image description here



~/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










share|improve this question
























  • 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
















5














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:



enter image description here



~/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










share|improve this question
























  • 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














5












5








5


3





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:



enter image description here



~/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










share|improve this question















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:



enter image description here



~/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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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










1 Answer
1






active

oldest

votes


















5














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:





  1. Create build.gradle containing:



    task getHomeDir << {
    println gradle.gradleHomeDir
    }



  2. Run



    gradle getHomeDir



Reference: Setting up Gradle Plugin For IntelliJ






share|improve this answer























  • 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






  • 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











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
});


}
});














draft saved

draft discarded


















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









5














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:





  1. Create build.gradle containing:



    task getHomeDir << {
    println gradle.gradleHomeDir
    }



  2. Run



    gradle getHomeDir



Reference: Setting up Gradle Plugin For IntelliJ






share|improve this answer























  • 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






  • 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
















5














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:





  1. Create build.gradle containing:



    task getHomeDir << {
    println gradle.gradleHomeDir
    }



  2. Run



    gradle getHomeDir



Reference: Setting up Gradle Plugin For IntelliJ






share|improve this answer























  • 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






  • 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














5












5








5






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:





  1. Create build.gradle containing:



    task getHomeDir << {
    println gradle.gradleHomeDir
    }



  2. Run



    gradle getHomeDir



Reference: Setting up Gradle Plugin For IntelliJ






share|improve this answer














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:





  1. Create build.gradle containing:



    task getHomeDir << {
    println gradle.gradleHomeDir
    }



  2. Run



    gradle getHomeDir



Reference: Setting up Gradle Plugin For IntelliJ







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 19 at 0:03









muru

1




1










answered Nov 1 '15 at 14:18









Anton Dozortsev

984819




984819












  • 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






  • 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












  • @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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Category:香港粉麵

List *all* the tuples!

Channel [V]