android - 得到错误 : spawn EACCES while ionic build android in ubuntu 14. 04

标签 android cordova ionic2

我在ionic2中开发了一个项目

当我在做 ionic build android 时出现这个错误

enter image description here

我的 ionic 信息是

Cordova CLI:6.3.0

Ionic 框架版本:2.0.0-beta.10

Ionic CLI 版本:2.0.0-beta.36

Ionic App Lib 版本:2.0.0-beta.19

操作系统:发行商 ID:Ubuntu 描述:Ubuntu 14.04.5 LTS

节点版本:v4.4.7

我在谷歌搜索,但没有适合我的解决方案..

我该如何修复这个错误?

最佳答案

这是构建应用程序时的权限错误

你需要给 Gradle 权限

sudo chmod -R 777/Applications/Android\Studio\3.0\Preview.app/Contents/gradle

享受:)

关于android - 得到错误 : spawn EACCES while ionic build android in ubuntu 14. 04,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38767126/

相关文章:

android - 为什么 ActionBar 缺失(Android)以及如何添加后退按钮?

android - 在 Google VR 中播放 m3u8 for Android 示例

xml - Android Edittext问题,用done替换keypad enter

javascript - 仅在传单和电话间隙中将缩放限制为按钮

typescript - 在 Ionic 中应用幻灯片

amazon-web-services - Ionic2 和 AWS 集成

html - Ionic - 改变 ionic 搜索栏的宽度

android - 获取已连接的蓝牙 LE 设备列表

javascript - cordova admob 插件工作但有 Uncaught ReferenceError

jQuery 和 PhoneGap - 包含带有 HTML 或 JS 的 HTML 文件客户端?