title: How do i get my ionic app to target API level 28 and Above
body: <p>I have been trying to upload my ionic app since today and discovered google changed their app rule to  target API level  28 and above mine targets 27 so to stay.</p>
  
  <p>All the help i got haven't worked for me. I have upgraded my codova android to 8.0.0 after trying 7, I have added this line ""  in my config.xml still it didnt work. please Help</p>
  
  <p>my config.xml</p>
  
  <pre><code>&lt;widget id="xxx" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;name&gt;xxx&lt;/name&gt;
      &lt;description&gt;xxx&lt;/description&gt;
      &lt;author email="evensatowind@gmail.com" href="http://github.com/satowind"&gt;Sato Wind&lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;access origin="*" /&gt;
      &lt;allow-intent href="http://*/*" /&gt;
      &lt;allow-intent href="https://*/*" /&gt;
      &lt;allow-intent href="tel:*" /&gt;
      &lt;allow-intent href="sms:*" /&gt;
      &lt;allow-intent href="mailto:*" /&gt;
      &lt;allow-intent href="geo:*" /&gt;
      &lt;preference name="android-targetSdkVersion" value="28" /&gt;
      &lt;preference name="ScrollEnabled" value="false" /&gt;
      &lt;preference name="android-minSdkVersion" value="19" /&gt;
      &lt;preference name="BackupWebStorage" value="none" /&gt;
      &lt;preference name="SplashMaintainAspectRatio" value="true" /&gt;
      &lt;preference name="FadeSplashScreenDuration" value="500" /&gt;
      &lt;preference name="SplashShowOnlyFirstTime" value="false" /&gt;
      &lt;preference name="SplashScreen" value="screen" /&gt;
      &lt;preference name="SplashScreenDelay" value="3000" /&gt;
      &lt;engine name="android" spec="8.0.0" /&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p>my build.gradle</p>
  
  <pre><code>   or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.
  */
  
  // Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      repositories {
          google()
          jcenter()
      }
  
      dependencies {
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
  
          classpath 'com.android.tools.build:gradle:3.3.0'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  
      //This replaces project.properties w.r.t. build settings
      project.ext {
        defaultBuildToolsVersion="28.0.3" //String
        defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
        defaultTargetSdkVersion=28 //Integer - We ALWAYS target the latest by default
        defaultCompileSdkVersion=28 //Integer - We ALWAYS compile with the latest by default
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>The Error i got</p>
  
  <pre><code>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. Change your app's target API level to at least 28
  </code></pre>
  
  <p>please help with the solution that worked for you.</p>