title: spawn EACCESS Error while running / building Android Platform on Ionic 3
body: <p>As many users, i had this error when doing</p>
  
  <pre><code>ionic cordova run android -android
  </code></pre>
  
  <p>or </p>
  
  <pre><code>cordova build android --verbose
  </code></pre>
  
  <p>the output :</p>
  
  <pre><code>No scripts found for hook "before_build".
  No scripts found for hook "before_prepare".
  Checking config.xml and package.json for saved platforms that haven't been added to the project
  Config.xml and package.json platforms are the same. No pkg.json modification.
  Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
  PlatformApi successfully found for platform android
  Checking config.xml for saved plugins that haven't been added to the project
  Checking for any plugins added to the project that have not been installed in android platform
  No differences found between plugins added to project and installed in android platform. Continuing...
  Generating platform-specific config.xml from defaults for android at /Users/davidanquetin/GIT/MEDIATOOLS/DOMME/domme-app/platforms/android/res/xml/config.xml
  Merging project's config.xml into platform-specific android config.xml
  Merging and updating files from [www, platforms/android/platform_www] to platforms/android/assets/www
  Wrote out android application name "Domme" to /Users/davidanquetin/GIT/MEDIATOOLS/DOMME/domme-app/platforms/android/res/values/strings.xml
  Wrote out Android package name "com.pasquet.domme.all" to /Users/davidanquetin/GIT/MEDIATOOLS/DOMME/domme-app/platforms/android/src/com/pasquet/domme/all/MainActivity.java
  Updating icons at platforms/android/res
  Updating splash screens at platforms/android/res
  This app does not have additional resource files defined
  Prepared android project successfully
  No scripts found for hook "after_prepare".
  No scripts found for hook "before_compile".
  Running command: /usr/libexec/java_home 
  Command finished with error code 0: /usr/libexec/java_home 
  ANDROID_HOME=/Users/davidanquetin/Documents/_UTILITAIRES/TECHNIQUE/android-sdk-macosx/
  JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home
  Running command: "/Applications/Android Studio 3.0 Preview.app/Contents/gradle/gradle-4.0-milestone-1/bin/gradle" -p /Users/davidanquetin/GIT/MEDIATOOLS/DOMME/domme-app/platforms/android wrapper -b /Users/davidanquetin/GIT/MEDIATOOLS/DOMME/domme-app/platforms/android/wrapper.gradle
  Error: spawn EACCES
  </code></pre>
  
  <p>i tried many manipulations founded on the web (chmod etc...) but nothing is working..</p>
  
  <p>when i try </p>
  
  <pre><code>chmod +x /Applications/Android Studio 3.0 Preview.app/Contents/gradle/gradle-4.0-milestone-1/bin/gradle
  </code></pre>
  
  <p>i have :</p>
  
  <pre><code>chmod + /Applications/Android\ Studio\ 3.0\ Preview.app/Contents/gradle/gradle-4.0-milestone-1/bin/gradle 
  </code></pre>
  
  <p>and always the same error after building...</p>
  
  <p>thanks for ideas !</p>
  
  <p><strong>UPDATE / RESOLVED</strong></p>
  
  <p>The way i resolved the problem :</p>
  
  <ul>
  <li>delete Android Studio app</li>
  <li>redownload and reinstall it</li>
  <li>update java</li>
  <li>creating a new ionic project, then update it with my previous assets / code files.</li>
  <li>reinstall platforms with a clean installation</li>
  </ul>
  
  <p>and...it works !
  I think it is manly Android Studio removing and reinstallation which resolves the problem.</p>
  
  <p>If it could help !</p>