Ionic 3 generate corrupt APK


#1

Hello,

i have following problem. I’m generate an APK with “ionic cordova build android” or “ionic cordova build android --debug” or “ionic cordova build android --release” and if i will install this on my phone with Android 8 i get the error “There Was A Problem Parsing The Package”.

But if i start with “ionic cordova run android” it works fine on this device.

What can be the problem?

ionic info

cli packages: (/Users/xxx/.nvm/versions/node/v8.4.0/lib/node_modules)

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

global packages:

cordova (Cordova CLI) : 7.1.0 

local packages:

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

System:

ios-deploy : 1.9.2 
Node       : v8.4.0
npm        : 5.5.1 
OS         : macOS High Sierra
Xcode      : Xcode 9.4.1 Build version 9F2000 

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro