Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Your app currently targets API level 30 and must target at least API level 31 to ensure it is built on the latest APIs

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?

like image 976
Alexander Obidiegwu Avatar asked Sep 13 '25 21:09

Alexander Obidiegwu


1 Answers

Change targetSdkVersion

ext {
        buildToolsVersion = "29.0.3"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 31
    }
like image 113
user14678216 Avatar answered Sep 15 '25 12:09

user14678216