Ionic 2/3 Android发布失败

时间:2018-03-05 17:01:26

标签: ionic-framework ionic2 ionic3

我正在尝试为我的Android版本生成一个APK文件。当我输入

ionic cordova build --release android

它给了我这个错误

ANDROID_HOME=/Users/user/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
Error: spawn EACCES

EACCES是什么意思以及如何解决它?

日志

ionic cordova build --release android --verbose
[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: '/Users/Haddy/Desktop/ionic/ionicapp/ionicapp', local: false, binPath: 
        '/usr/local/lib/node_modules/ionic/bin/ionic', libPath: 
        '/usr/local/lib/node_modules/ionic/dist/index.js' }
[DEBUG] Daemon found (pid: 676)
Running app-scripts build: --platform android --target cordova
[13:07:42]  build dev started ... 
[13:07:43]  clean started ... 
[13:07:43]  clean finished in 15 ms 
[13:07:43]  copy started ... 
[13:07:43]  deeplinks started ... 
[13:07:43]  deeplinks finished in 320 ms 
[13:07:43]  transpile started ... 
[13:07:49]  transpile finished in 5.96 s 
[13:07:49]  preprocess started ... 
[13:07:49]  preprocess finished in 2 ms 
[13:07:49]  webpack started ... 
[13:07:54]  copy finished in 10.98 s 
[13:08:01]  webpack finished in 11.93 s 
[13:08:01]  sass started ... 
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
[13:08:03]  sass finished in 1.60 s 
[13:08:03]  postprocess started ... 
[13:08:03]  postprocess finished in 19 ms 
[13:08:03]  lint started ... 
[13:08:03]  build dev finished in 20.16 s 
> cordova build android --release

ANDROID_HOME=/Users/user/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home
Error: spawn EACCES

编辑:更新了我的问题,尚未得到答复

0 个答案:

没有答案