APK不是使用--prod --release标志生成的

时间:2017-11-13 20:47:52

标签: cordova ionic-framework

我正在尝试使用submodule1生成一个APK,但它会在ionic cordova build android --prod --release之后停止,没有任何错误或警告。如果我使用postprocess started ...

,则会生成一个APK

构建输出

ionic cordova build android

info info

[12:13:54]  build prod started ... 
[12:13:54]  clean started ... 
[12:13:54]  clean finished in less than 1 ms 
[12:13:54]  copy started ... 
[12:13:54]  ngc started ... 
[12:14:00]  ngc finished in 6.07 s 
[12:14:00]  preprocess started ... 
[12:14:00]  deeplinks started ... 
[12:14:00]  deeplinks finished in 224 ms 
[12:14:00]  optimization started ... 
[12:14:00]  copy finished in 6.45 s 
[12:14:10]  optimization finished in 9.35 s 
[12:14:10]  preprocess finished in 9.57 s 
[12:14:10]  webpack started ... 
[12:14:58]  webpack finished in 48.28 s 
[12:14:58]  sass started ... 
[12:14:58]  uglifyjs started ... 
[12:14:59]  sass finished in 663 ms 
[12:14:59]  cleancss started ... 
[12:14:59]  cleancss finished in 834 ms 
[12:15:12]  uglifyjs finished in 14.29 s 
[12:15:12]  postprocess started ... 

插件

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.0.1 

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : android 6.2.3 ios 4.4.0
    Ionic Framework    : ionic-angular 3.8.0

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.2 
    ios-sim           : 6.1.2 
    Node              : v7.9.0
    npm               : 5.5.1 
    OS                : macOS Sierra
    Xcode             : Xcode 9.1 Build version 9B55 

Environment Variables:

    ANDROID_HOME : /Users/mbp/Library/Android/sdk

Misc:

    backend : pro

Android构建工具版本You have been opted out of telemetry. To change this, run: cordova telemetry on. cordova-admob-sdk 0.11.1 "AdMob SDK" cordova-plugin-admob-free 0.11.0 "Cordova AdMob Plugin" cordova-plugin-camera 2.4.1 "Camera" cordova-plugin-compat 1.2.0 "Compat" cordova-plugin-console 1.0.7 "Console" cordova-plugin-device 1.1.6 "Device" cordova-plugin-file 4.3.3 "File" cordova-plugin-file-transfer 1.6.3 "File Transfer" cordova-plugin-nativestorage 2.2.2 "NativeStorage" cordova-plugin-splashscreen 4.0.3 "Splashscreen" cordova-plugin-statusbar 2.2.3 "StatusBar" cordova-plugin-whitelist 1.3.2 "Whitelist" cordova-promise-polyfill 0.0.2 "cordova-promise-polyfill" cordova-sqlite-storage 2.0.4 "Cordova sqlite storage plugin" ionic-plugin-keyboard 2.2.1 "Keyboard"

0 个答案:

没有答案