Warning Android API level 28 with ionic-v3

Hi Friends,

I have facing error while deploying ionic 3 app to play store.

(From Augest 1 onwards all android app must target api level 28)
Warning Android API level 28 must be target 

I understand whats the problem. I need to update my ionic 3 project to target api level to 28.
But i don’t know how to do this without affect any error to projects.

Please guide me friends how to do this.

I have spend past few days to solve this issue.

I believe all ionic developer will face this issue already or soon. So it will helps to other also. Please give me some idea to solve this issue.

My Ionic info

Ionic:

   Ionic CLI          : 5.2.3 (C:\Users\Admin\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   Cordova CLI       : not installed
   Cordova Platforms : android 7.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 1.1.1, (and 14 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 0.2.7 (update available: 0.2.8)

System:

   Android SDK Tools : 26.1.1 (C:\Users\Admin\AppData\Local\Android\Sdk)
   NodeJS            : v10.16.1 (C:\Program Files\nodejs\node.exe)
   npm               : 6.9.0
   OS                : Windows 10


Thanks,

Muthukumar

Hello,
To change the build version you want to change your config.xml located at the root project’s path.

The following lines add in config.xml and then settings are updated automatically at the time building an android app.

<platform name = "android">
    <preference name="android-targetSdkVersion" value="28"/>
</platform>

Hope this will help you!

1 Like

Hey! I tried this solution but when I build the app I get an error in main.js with no information when trying to make a simple http request.

 "ERROR [object Object]", source: http://localhost/main.ff909630627eb22f9557.js