1
我使用離子2.我可以使用離子發球。當我嘗試使用build命令或者Android或iOS的運行命令時,命令成功,但沒有生成apk和ipa。 platorm文件夾下沒有生成文件夾。離子2構建成功,但沒有生成APK
E.g.
ionic build android
輸出以下:
> ionic-app-scripts build
[00:35:55] ionic-app-scripts 0.0.45
[00:35:55] build prod started ...
[00:35:55] clean started ...
[00:35:55] clean finished in 5 ms
[00:35:55] copy started ...
[00:35:55] ngc started ...
[00:35:55] copy finished in 93 ms
[00:36:07] ngc finished in 12.19 s
[00:36:07] webpack started ...
[00:36:14] webpack finished in 7.00 s
[00:36:14] uglifyjs started ...
[00:36:14] sass started ...
[00:36:15] sass finished in 922 ms
[00:36:15] cleancss started ...
[00:36:16] cleancss finished in 924 ms
[00:36:22] uglifyjs finished in 8.68 s
[00:36:22] build prod finished in 27.88 s
我以前用過Ionic v1很多次,所以我熟悉CLI並知道要運行的命令。問題是他們現在不能工作,我正在用v2試用它們。 Android平臺已經被添加,就像iOS一樣。我也嘗試刪除,然後重新添加平臺,然後建設。沒有不同。 – user2120910
您已經安裝了cordova並配置了android sdk ?.我只是在我的電腦上試過並沒有問題生成 – josego
是的,cordova已安裝。 Android SDK也已安裝。路徑變量也都配置好了。 – user2120910