Parse error, there was a problem parsing the package

Prior now everything was building fine with sdk 23 then recently i notice that when i run ionic cordova platform add android, is adding android-6.3.0 and set target sdk to 26, if i run ionic cordova build android it build successfully, BUT cant install app on my device of android6.0, it return error “Parse error, there was a problem parsing the package”.

I set target sdk on config.xml to 23, and set target=android-23 in project.properties, my android manifest targetsdkversion is 23. BUT it seems to ignore all this configuration and build with recent sdk.

below is my ionic info details

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

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.1.4
Cordova Platforms  : android 6.3.0
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v8.9.1
npm  : 5.5.1
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

Pls i need solution to this problem

I had the same problem but for different versions. I was able to solve the problem by setting cdvMinSdkVersion to the appropriate version in gradle.propreties . Hope this helps