Build --prod generate two apk


#1

Dear,

I am running ionic cordova build android --prod --release and I receive the following message:

BUILD SUCCESSFUL in 15s
45 actionable tasks: 3 executed, 42 up-to-date
Built the following apk(s): 
	/Users/nicolas/Documents/Proyectos/..../platforms/android/app/build/outputs/apk/release/app-release-unsigned 4.apk
	/Users/nicolas/Documents/Proyectos/..../platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk

#2

Success looks great!

And what is your problem or question?


#3

My question is: Why does it generate 2 APK? one that ends with “4.apk” and another “.apk”. Also I have had problems, when I install the signed application and I receive a push notification the icon is not visible.


#4

Open a new topic about this please.

No idea. Are you using Crosswalk or anything special in your project?

What is your ionic info output?


#5
ionic info
cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    @ionic/app-scripts : 3.1.8
    Cordova Platforms  : android 7.1.0 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    ios-deploy : 1.9.2 
    Node       : v8.10.0
    npm        : 5.6.0 
    OS         : macOS High Sierra
    Xcode      : Xcode 9.2 Build version 9C40b 

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro