How to update your app to API 35 (Android 15) using Android Studio

Tiempo de lectura: 2 minutos

<pCurrently, Google requests to update SDK 35 so that our apps remain available in the market (do not delete them but hide them), as well as be able to send new updates.

Mobile android Pexels

Open app/build.gradle or app/build.gradle.kts, and replace these lines:

Before:

compileSdkVersion 34 defaultConfig { minSdkVersion 21 targetSdkVersion 34 } 

After:

android { compileSdk = 35 defaultConfig { applicationId "com.tuapp" minSdk = 21 targetSdk = 35 versionCode 1 versionName "1.0" } }

This avoids deprecated warnings (compileSdkVersion, targetSdkVersion and minSdkVersion are obsolete).

Verify that you have the tools updated

build.gradle (project level) – Verify this:

dependencies { classpath 'com.android.tools.build:gradle:8.2.0' // or higher } 

gradle-wrapper.properties – Verify this:

distributionUrl=https://services.gradle.org/distributions/gradle-8.4-all.zip 

You can find it in gradle/wrapper/gradle-wrapper.properties.

You need to open the file build.gradle and check that all your libraries are compatible with API 35. Use recent versions of:

implementation 'androidx.core:core-ktx:1.13.1' implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'com.google.android.material:material:1.11.0' 

If you use Firebase, CameraX, Room, etc., check their latest versions on https://developer.android.com/jetpack/androidx/releases

Test your app on an emulator or a device with Android 15

Use an emulator with Android 15 or a physical device if you have access.

Check that:

Common Error Corrections

👍 Use compileSdk = 35 (without Version.

👍 Make sure you have:

targetSdk = 35

Error: "permission denied" for storage or notifications

✅ Since Android 13+, you need to request explicit permissions for:

Build and testing final

Perform a Clean Build: Build > Clean Project and then Build > Rebuild Project Execute on emulator or device with Android 15. If everything goes well, you're ready to publish.

(Optional) Publish on Google Play

A partir de August 2025, it is mandatory for new apps and updates to target targetSdk = 35.
Add it as a new signed build in the Play Console.

Leave a Comment