0

I have been having a problem for some time now. In build.gradle I have always had my compileSdk set to 32. And it would never prevent my app from starting.

Since recent times, when I start a new Android project and run it, the compiler outputs an error that tells me to update my compileSdk, as there are dependencies that require libraries and applications that depend on them to compile against version 33 or later of the Android APIs.

I know I have to go to my build.gradle (app/module) file and change compileSdk to 33. But the difficulty is that I have to do that every time I start a new Android project. Please tell me how I could make it so compileSdk's value is always set to 33, by default.

Google did not help, I've not been able to find a similar question.

bighugedev
  • 379
  • 1
  • 3
  • 11

1 Answers1

1

Are you using an IDE? If so, you should be able to set this up in the project creation wizard. If I am not mistaken, You should be able to set minimum SDK in those configurations. Most IDEs also have a configuration profile with which you can use to replicate those settings each time you create a new project. Here is a few to get you started. Android Studio is sure to have this feature.

VS Code Settings

Settings for Eclipse

Android Studio Settings

Euler
  • 312
  • 1
  • 11