# Elasticsearch unable to build using Gradle

**URL:** https://discuss.elastic.co/t/elasticsearch-unable-to-build-using-gradle/234715
**Category:** Elasticsearch
**Created:** [May 28, 2020, 10:14am UTC](https://discuss.elastic.co/t/elasticsearch-unable-to-build-using-gradle/234715 "2020-05-28T10:14:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Shubham\_Jha\_99](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shubham_jha_99/32/46287_2.png) [@Shubham\_Jha\_99](https://discuss.elastic.co/u/Shubham_Jha_99)
#### Post date: [May 28, 2020, 10:14am UTC](https://discuss.elastic.co/t/elasticsearch-unable-to-build-using-gradle/234715/1 "2020-05-28T10:14:34Z")

</div>

I am trying to setup Ealasticsearch on my windows 10 for intellij following this [link](https://www.elastic.co/blog/how-to-debug-elasticsearch-source-code-in-intellij-idea) but when i execute `gradlew.bat idea` I am getting this error.

 ![GradleError_New](https://us1.discourse-cdn.com/elastic/original/3X/a/3/a3a2b41c245a2c0db7a6cfbbcb752136ddb4c64b.png) .  
I am using Gradle version 6.4 and java jdk 14.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 28, 2020, 3:56pm UTC](https://discuss.elastic.co/t/elasticsearch-unable-to-build-using-gradle/234715/2 "2020-05-28T15:56:35Z")

</div>

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with `</>` icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

---

<div class="post-metadata">

### Author: ![breskeby](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/breskeby/32/69309_2.png) [@breskeby](https://discuss.elastic.co/u/breskeby)
#### Post date: [May 28, 2020, 4:06pm UTC](https://discuss.elastic.co/t/elasticsearch-unable-to-build-using-gradle/234715/3 "2020-05-28T16:06:03Z")

</div>

Can you please follow these instructions instead for importing elasticsearch into idea: [https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md#importing-the-project-into-intellij-idea](https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md#importing-the-project-into-intellij-idea) We probably need to update this blog post.

Please ping me how this went

---

<div class="post-metadata">

### Author: ![Shubham\_Jha\_99](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shubham_jha_99/32/46287_2.png) [@Shubham\_Jha\_99](https://discuss.elastic.co/u/Shubham_Jha_99)
#### Post date: [May 29, 2020, 5:31am UTC](https://discuss.elastic.co/t/elasticsearch-unable-to-build-using-gradle/234715/4 "2020-05-29T05:31:29Z")

</div>

I tried that too but in Intellij ide I am getting `Plugin [id: 'com.gradle.enterprise', version : '3.3.1'] was not found in any of the following sources` which is same as the error I got on terminal.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 26, 2020, 5:31am UTC](https://discuss.elastic.co/t/elasticsearch-unable-to-build-using-gradle/234715/5 "2020-06-26T05:31:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
