I am trying to update an existing app to target SDK 33. The project currently has the following in the project build.gradle
file.
ext {
compileSdkVersion = 30
targetSdkVersion = 30
// more stuff
}
The module app/build.gradle
file has this
android {
// more stuff
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
// more stuff
targetSdkVersion 30
}
I am going to change the compileSdkVersion
and targetSdkVersion
values in the project build.gradle
file to 33. I see where the module app/build.gradle
file references the compileSdkVersion
value in the project build.gradle
file. Is there a way to do the same with the targetSdkVersion
value? Or do I need to manually set it to 33? What happens if I leave the targetSdkVersion
value at 30 in the module app/build.gradle
file?