Warning Android API level 28 with ionic-v3 and cordova 6.3.0

I used to publish an ionic app on google play but this morning I had the following warning: "Your application targets now level API 26. Nevertheless, it should now target level API 28 ..."

I'm using Cordova 6.3.0, how can I target API 28 with it?

Here is my ionic info :


   ionic (Ionic CLI)  : 4.12.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.4


   cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms     : android 6.3.0, ios 5.0.1
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 14 other plugins)


   NodeJS : v10.16.0 (/usr/local/bin/node)
   npm    : 6.9.0
   OS     : macOS Mojave
   Xcode  : Xcode 10.2.1 Build version

I have no error message when building my app locally like I did until now, the warning is only on google play platform.

Here are the command line I generally use :

npm i
cordova platform rm android
ionic cordova platform add android@6.3.0 --save-exact

ionic cordova build android --prod --release

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore somekeystorye.keystore /Users/user/Documents/dev/app/platforms/android/build/outputs/apk/android-release-unsigned.apk Name

~/Library/Android/sdk/build-tools/29.0.1/zipalign -v 4 /Users/user/Documents/dev/app/platforms/android/build/outputs/apk/android-release-unsigned.apk /Users/user/Documents/dev/app/platforms/android/build/outputs/apk/android-release-0.0.20.apk

Any idea?

EDIT Is seems that :

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

Does the job as mentioned here : Can cordova android@6.2.3 target SDK 26? I have no warnings now.

Will try to check and come back later to keep you in touch

for me what works finaly was just this :

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

Warning Android API level 28 with ionic-v3, Warning Android API level 28 with ionic-v3 Framework : ionic-angular 3.9.2 @​ionic/app-scripts : 3.1.11 Cordova: Cordova CLI : not installed  (From August 1 onwards all android app must target api level 28) Warning Android API level 28 must be target I understand Why Join Become a member Login No unread comment.

After spend some time on this error i found this three solution.

solution 1
ionic cordova platform rm android

ionic cordova platform add android@8.1
solution 2
<preference name="android-targetSdkVersion" value="28" />
solution 3 (if above solution not work then only)
  1. Follow this step
    1. Update Your sdk to api level 28 from android studio.
    2. Create new project with "ionic start".
    3. Copy paste your old code to this new created project and install your all plugin and it's Done!

Warning Android API level 28 with ionic-v3, (From August 1 onwards all android app must target api level 28). Warning Android Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5,  #### Warnings Your app currently targets API level 27 and must target at least API level 28 to ensure it is built on the latest APIs optimized for security and performance. I then searched the Android Project in Android Studio and see the following in platform\app\build.gradle:

changing directly the uses-sdk is not the correct answer, at least not enough nor good answer...

you better update the cordova android engine to the latest version. Its default target sdk version is already 28. (see https://github.com/apache/cordova-android/issues/791 ). Only changing it in config.xml just returned with bunch of rarely errors.


Cordova-Android 6.3.0 support for androidTargetSDK 28? · Issue , X.X is only Supported Android API-Levels 16 - 26. So I'm confused that my app meets Google Play's target API level requirement? Do I need to  Ionic v3 ion-input bug on Android 9 and API 28. For the history of this bug, see these Ionic v3 issues: #1049 #1056; This project illustrated the bug. @StefanRein provided a fix, and this project has been updated to show how to implement that fix. There is an open PR to patch this but is unlikely to be accepted due to time and/or the risk of

This helped me:

On file: paltforms/android/app/src/main/androidmanifest.xml

Change the 'android:targetSdkVersion' value:

<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="28" />


Blog, The Cordova-iOS 6.x platform removes all UIWebView code and this version also removes the UIWebView This should solve the warning after uploading the app to App Store connect: Support Android SDK 28; Support Android Studio 3.3.0 npm install -g cordova cd my_project cordova platform update android@6.3.0. 25 Not allowed to load local resource: ionic 3 android May 1 '19 4 Keyboard shortcut to convert selection to uppercase (or lowercase) in the atom editor Dec 13 '18 3 Warning Android API level 28 with ionic-v3 and cordova 6.3.0 Aug 26 '19

Update Cordova, then build again.

npm i -g cordova
ionic cordova build --release android --prod

cordova-plugin-firebasex, Android; iOS. API. Notifications and data messages. getToken; getId Note: Firebase Messaging iOS SDK version 7.0 will be a breaking change ionic cordova plugin add cordova-plugin-firebasex npm install @ionic-native/firebase-​x issue #28) when you upload your binary to App Store Connect, e.g.: The default PhoneGap app wants me to get API 17. However I have 18 and would rather use that. How do I specify which version of the API to use? I did some searching of some config files in my project but didn't see anything specifying the level to be 17. I'm developing on Windows and want to build android locally.

ionic cordova build android Error with gradle, I have installed the last Ionic version, java 8, android studio. I have created a new blank ionic project. When I try to run ionic cordova build android I have this error: Could not GET 'https://maven.google.com/com/android/tools/build/gradle/3.0.0/ android 6.3.0 Ionic Framework : ionic-angular 3.8.0 System: Android SDK  Android 10 (API level 29) For details about the platform changes, see Android 10 for Developers. Revision 4 (December 2019) This revision fixes a bug that was impacting the Android Studio auto-complete feature. Android 9 (API level 28) For details about the platform changes, see Android 9 for developers. Revision 1 (August 2018)

android api level 28 name, Warning Android API level 28 with ionic-v3 and cordova 6.3.0. Dismiss Join GitHub today. 4. I am trying to add a ToggleButton in design mode in Android studio. When using Cordova 6.5.0 and cordova-android 6.3.0, everything will work perfectly. But this version is too old for certain plugins, like the phonegap-plugin-push . When using Cordova 7.1.0 and cordova-android 6.3.0 , you can build and deploy to device and emulators, however VS2017 wrongly reports that Deploy failed on the status bar.

Firebase JavaScript SDK Release Notes, Caution: Version 7.15.3 contains an issue that prevents Cloud Firestore from Fixed an issue where auth credentials were not respected in Cordova environments. Added the OAuth sign-in support for apps served from origins with the ionic:// Enabled the SDK to recognize older versions of iOS Safari and Android when  cordova platform remove android cordova platform add android@8.0.0 In addition to the various improvements and bug fixes, this release also comes packed with some major features. Some of the key features are: