Upgrade Capacitor 3 to 4 + Ionic react + Android build error in android-32

I have just migrated my capacitor from 3 to 4 in my relatively simple Ionic React project.


With the help of this guide Updating to 4.0 | Capacitor Documentation… everything was successfully upgraded and migrated. But when I build in my Android studio it shows this error.
image
Any idea why this is happening?
My gradle and everything are updated in Android studio. Please help. Thank you.

Try to find this lines on Android/variables.gradle

image

You should target those numbers of targets :slight_smile:

I am already targeting that in my variables.gradle file but seems like my android studio can’t find the compile target for android-32. Not sure what is wrong.

Open SDK manager from Android Studio and download SDK 32. (Android SDK Platform 32)