# How to fix this Error: spawn EACCES

**URL:** <https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490>\
**Category:** ionic-v1\
**Created:** [April 8, 2015, 4:14am UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490 "2015-04-08T04:14:44Z")\
**Posts on this page:** 14\
**Page:** 4

<div class="post-metadata">

**Author:** ![omarlemage](https://avatars.discourse-cdn.com/v4/letter/o/a587f6/32.png) [@omarlemage](https://forum.ionicframework.com/u/omarlemage)\
**Post date:** [November 19, 2017, 4:46pm UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/62 "2017-11-19T16:46:16Z")

</div>

Resolve problem with:

sudo chmod 755 /Applications/Android\ Studio.app/Contents/gradle/gradle-XXX/bin/gradle

---

<div class="post-metadata">

**Author:** ![tres\_passer](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tres\_passer](https://forum.ionicframework.com/u/tres_passer)\
**Post date:** [November 23, 2017, 6:25pm UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/63 "2017-11-23T18:25:46Z")

</div>

thanks, **Bro**!!  
i was try all of that written above!  
after run your command it start work!)

but i have a new quest:  
Warning: License for package Android SDK Platform 26 not accepted.  
FAILURE: Build failed with an exception.

I left to solve the problem…

---

<div class="post-metadata">

**Author:** ![omarlemage](https://avatars.discourse-cdn.com/v4/letter/o/a587f6/32.png) [@omarlemage](https://forum.ionicframework.com/u/omarlemage)\
**Post date:** [November 23, 2017, 6:40pm UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/64 "2017-11-23T18:40:12Z")

</div>

He knows what is the FAIL exception

---

<div class="post-metadata">

**Author:** ![SubEffect](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/subeffect/32/65247_2.png) [@SubEffect](https://forum.ionicframework.com/u/SubEffect)\
**Post date:** [November 29, 2017, 9:00pm UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/65 "2017-11-29T21:00:53Z")

</div>

I get exactly the same thing. It was working fine a few days ago!

None of the suggested solutions so far have worked for me.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [December 6, 2017, 10:25pm UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/66 "2017-12-06T22:25:20Z")

</div>

See here:

> [@Error: spawn EACCES on a fresh install](https://forum.ionicframework.com/t/error-spawn-eacces-on-a-fresh-install/113956/16):
>
> The correct solution would probably have been: Install a Standalone Gradle from [gradle.org/install](http://gradle.org/install) (if you have Android Studio 3 installed) Upgrade cordova-android to 6.4.0 (ionic cordova platform remove android, ionic cordova platform add android@6.4.0)

---

<div class="post-metadata">

**Author:** ![Cataphract](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@Cataphract](https://forum.ionicframework.com/u/Cataphract)\
**Post date:** [December 11, 2017, 12:00am UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/67 "2017-12-11T00:00:56Z")

</div>

This is the correct answer, although I share the concern about just wildly changing permissions.

---

<div class="post-metadata">

**Author:** ![pedrobrasileiro](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/pedrobrasileiro/32/92598_2.png) [@pedrobrasileiro](https://forum.ionicframework.com/u/pedrobrasileiro)\
**Post date:** [December 12, 2017, 11:27pm UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/68 "2017-12-12T23:27:06Z")

</div>

> [@omarlemage](#):
>
> sudo chmod 755 /Applications/Android\ Studio.app/Contents/gradle/gradle-XXX/bin/gradle

this works from me. Thanks!!

---

<div class="post-metadata">

**Author:** ![wnpiispanen](https://avatars.discourse-cdn.com/v4/letter/w/94ad74/32.png) [@wnpiispanen](https://forum.ionicframework.com/u/wnpiispanen)\
**Post date:** [January 8, 2018, 10:34am UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/69 "2018-01-08T10:34:12Z")

</div>

I get this error in the build log when using the new Ionic Pro cloud…

---

<div class="post-metadata">

**Author:** ![Anky001](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/anky001/32/137800_2.png) [@Anky001](https://forum.ionicframework.com/u/Anky001)\
**Post date:** [January 14, 2018, 1:24pm UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/70 "2018-01-14T13:24:27Z")

</div>

It was a gradle error for me I did the following  
after giving the 777 permission to the app folder I used  
brew install gradle  
that solved my issue

---

<div class="post-metadata">

**Author:** ![pdj](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@pdj](https://forum.ionicframework.com/u/pdj)\
**Post date:** [January 15, 2018, 2:29pm UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/71 "2018-01-15T14:29:56Z")

</div>

Thank you 🙂 it’s perfect for solving problem.

---

<div class="post-metadata">

**Author:** ![timergroup](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@timergroup](https://forum.ionicframework.com/u/timergroup)\
**Post date:** [January 30, 2018, 12:26pm UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/72 "2018-01-30T12:26:32Z")

</div>

Thank you! I have been struggling with this for several hours now

---

<div class="post-metadata">

**Author:** ![AhmedElShemy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ahmedelshemy/32/116875_2.png) [@AhmedElShemy](https://forum.ionicframework.com/u/AhmedElShemy)\
**Post date:** [January 31, 2018, 11:16am UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/73 "2018-01-31T11:16:08Z")

</div>

sudo chmod 755 “/Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/gradle”

---

<div class="post-metadata">

**Author:** ![kaysermagnus](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kaysermagnus](https://forum.ionicframework.com/u/kaysermagnus)\
**Post date:** [March 21, 2018, 7:34pm UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/74 "2018-03-21T19:34:55Z")

</div>

For me worked this:

sudo chmod 755 \<PROJECT\_FOLDER\>/platforms/android/\*

---

<div class="post-metadata">

**Author:** ![ravidave](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@ravidave](https://forum.ionicframework.com/u/ravidave)\
**Post date:** [April 13, 2018, 5:47am UTC](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/75 "2018-04-13T05:47:05Z")

</div>

thanks bro it’s worked for me…🕶🕶

[Previous page](https://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490.md?page=3)
