Home > Software design >  Your app currently targets API level 30 and must target at least API level 31 to ensure it is built
Your app currently targets API level 30 and must target at least API level 31 to ensure it is built

Time:10-02

I was just trying to deploy an app on google play store and got this error.

How do I change my target api to 31. I am aware it needs to be changed in build.gradle file under android/

This is mine:

ext {
        buildToolsVersion = "29.0.3"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 30
    }

Expo has a way to add it through my app.config.js using build properties

My question what do I change it to?

CodePudding user response:

Change targetSdkVersion

ext {
        buildToolsVersion = "29.0.3"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 31
    }
  • Related