Whenever I create a new project in Android Studio, it sets compileSdK and targetSdk to 34 and I have to manually change them to 35 (the latest version). Is there any way to have Android Studio create a new project with SDK version 35 automatically set for compileSdk and targetSDK?
To try to fix the issue, I unchecked Android 14.0 in the SDK Platforms tab of the SDK Manager, but that didn't seem to make any difference. New projects are still automatically created with compile and target SDKs of 34.
The solution to this was to update Gradle to the latest version. I had thought that it was updated, but apparently I was wrong. If anyone else is having this same issue, make sure both Gradle and the Gradle wrapper are up to date by running the following command twice: ./gradlew wrapper --gradle-version latest
Find more information here: https://docs.gradle.org/current/userguide/gradle_wrapper.html#sec:upgrading_wrapper