Api level 28 is not updating in ionic 3 project

I have installed api level 28 in android studio. I have created new project using “ionic start SuperProject blank --type=ionic-angular”. but api level is not updating to 28 from 26. my project ionic info below:


   Ionic CLI          : 5.2.6 (C:\Users\ismail\AppData\Roaming\nvm\v8.9.4\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.5
   @ionic/app-scripts : 3.2.2


   Cordova CLI       : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms : android 7.1.4
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 4 other plugins)


   cordova-res : 0.2.0 (update available: 0.6.0)
   native-run  : 0.2.8


   Android SDK Tools : 26.1.1 (C:\Users\ismail\AppData\Local\Android\Sdk)
   NodeJS            : v8.9.4 (C:\Program Files\nodejs\node.exe)
   npm               : 5.6.0
   OS                : Windows 10

I have also tested adding android-targetSdkVersion in config.xml
<preference name="android-targetSdkVersion" value="28"/>. but it is not working.
I have checked in real device “samsung a7”. App is not opening but not shows error.
I can not upload my app in google play store.

Hello, App not opening?. Then inspect your device app using chrome inspect, check there is any error?

you just need to update your project api level inside platform/app/build.gradle file

Try to update cordova-android to latest 8.0.0 using below commands.

ionic cordova platform remove android
ionic cordova platform add android@8.0.0