I am learning how to use Ionic by doing a test application but I have had this problem for two days. I have looked for possible solutions but none has worked for me.
For us, we just had to downgrade version of android
cordova platform rm android
ionic cordova platform add android@6.3.0
Inside android folder under platforms folder there is a file called project.properties Try replacing + with 27.1.0 in below lines
cordova.system.library.1=com.android.support:support-v4:+
cordova.system.library.2=com.android.support:appcompat-v7:+
Also do the same thing in build.gradle file
"com.android.support:support-v4:+"
"com.android.support:appcompat-v7:+"
This is due to compat plugin. Remove that plugin if you have older version (less than 1.2.0) and set cordova-android@6.3.0
cordova plugin rm cordova-plugin-compat --force
cordova plugin add cordova-plugin-compat@1.2.0
cordova platform rm android
ionic cordova platform add android@6.3.0
Working at my case. Thanks :)
The way i solved this problem is as below:
1) npm uninstall cordova ionic
2) npm install -g cordova@7.0.0 ionic@3.19.0
3) cordova platform rm android
4) cordova platform add android