Sencha Command在ubuntu上失败原生android包装

时间:2014-04-20 17:36:37

标签: android ubuntu extjs cordova

我在双启动Windows 8 / Ubuntu机器上。同样的代码在Windows 8上工作正常,但是当我触发 sencha app build native 命令时,在ubuntu上失败了。

我正在尝试打包Android应用,并使用 Sencha Cmd v4.0.4.84

下面是错误日志尾部:

[INF] init:
[INF] 
[INF] -before-phonegap-init:
[INF] 
[INF] -phonegap-init:
[INF] 
[INF] -after-phonegap-init:
[INF] 
[INF] phonegap-init:
[INF] 
[INF] -before-phonegap:
[INF] 
[INF] phonegap-copy-build:
[INF] 
[INF] -before-phonegap-copy-build:
[INF] 
[INF] -phonegap-copy-build:
[INF] 
[INF] -after-phonegap-copy-build:
[INF] 
[INF] -phonegap-build:
[INF] 
[INF] -phonegap-local-build:
[INF] [shellscript] [phonegap] compiling Android...
[INF] [shellscript] [ReferenceError: a is not defined]
[INF] [shellscript] execvp(): Permission denied
[INF] [shellscript] '{' [Error: /home/compUser/projWorkspace/proj/SomeApp/phonegap/platforms/android/cordova/build: Command failed with exit code EACCES] code: '''EACCES''' '}'
[INF] [shellscript]    [error] /home/compUser/projWorkspace/proj/SomeApp/phonegap/platforms/android/cordova/build: Command failed with exit code EACCES
[INF] 
[INF] -phonegap-run:
[INF] 
[INF] -after-phonegap:
[INF] 
[INF] -native-package:
[INF] 
[INF] -after-native-package:
[INF] 
[INF] -build:
[INF] 
[INF] -after-build:
[INF] 
[INF] build:
[INF] 
[INF] app-build:

当我cd到目录: / home / compUser / projWorkspace / proj / SomeApp / phonegap / platforms / android / cordova / build ,然后点击“phonegap local build android”,我得到了相同的错误,即

[phonegap] compiling Android...
[ReferenceError: a is not defined]
execvp(): Permission denied
{ [Error: /home/devesh/rxWorkspace/rx/RxApp/phonegap/platforms/android/cordova/build: Command failed with exit code EACCES] code: 'EACCES' }
   [error] /home/devesh/rxWorkspace/rx/RxApp/phonegap/platforms/android/cordova/build: Command failed with exit code EACCES

我想知道ubuntu上的phonegap配置是否有问题。

PS:我已经彻底验证了文件系统权限,这不是问题。

1 个答案:

答案 0 :(得分:0)

我有同样的问题。我决定输入

$ android

并安装我需要的所有API版本的子包。