在爱奥尼亚3上运行/构建Android平台时产生EACCESS错误

在爱奥尼亚3上运行/构建Android平台时产生EACCESS错误,android,cordova,ionic3,Android,Cordova,Ionic3,与许多用户一样,我在执行此操作时也出现了此错误 ionic cordova run android -android 或 输出: 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 Co

与许多用户一样,我在执行此操作时也出现了此错误

ionic cordova run android -android

输出:

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
我尝试了许多基于网络的操作(chmod等),但没有任何效果

当我尝试

chmod +x /Applications/Android Studio 3.0 Preview.app/Contents/gradle/gradle-4.0-milestone-1/bin/gradle
我有:

chmod + /Applications/Android\ Studio\ 3.0\ Preview.app/Contents/gradle/gradle-4.0-milestone-1/bin/gradle 
而且在构建之后总是出现同样的错误

谢谢你的建议


更新/解决

我解决问题的方法是:

  • 删除Android Studio应用程序
  • 重新下载并重新安装
  • 更新java
  • 创建一个新的ionic项目,然后用我以前的资产/代码文件更新它
  • 重新安装干净的平台
而且…它起作用了! 我认为是manly Android Studio的删除和重新安装解决了这个问题


如果可以的话

更新/解决

我解决问题的方法是:

  • 删除Android Studio应用程序
    • 重新下载并重新安装
    • 更新java
    • 创建一个新的爱奥尼亚项目,然后用我以前的资产更新它 /代码文件
    • 重新安装干净的平台
而且…它起作用了!我认为是manly Android Studio的删除和重新安装解决了这个问题


如果可以的话

请将解决方案添加为答案,而不是编辑。。
chmod + /Applications/Android\ Studio\ 3.0\ Preview.app/Contents/gradle/gradle-4.0-milestone-1/bin/gradle