Home > OS >  React Native EXPO: change app's target API level to at least 31
React Native EXPO: change app's target API level to at least 31

Time:10-04

I had built my app with eas build to get the .aab file to upload to the Google Play Console. And I am getting this error

Your app currently targets API level 30 and must target at least API level 31 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 31

When I followed this How to change api level 29 to 30 in expo react native App to upgrade expo and expo-cli, I ran into a brunch of dependency issues. The app didn't work after the upgrade.

The working expo version is 44.0.6 and expo-cli version is 5.4.12. After upgrading to expo version 46.0.0 and expo-cli version 5.5.1, even the eas build command fails, probably due to the dependency issues.

build error:

  • Related