androidreact-nativegoogle-playandroid-sdk-35

React Native upgrade targetSdk to Sdk 35


I have confusion Currently I am working on React native project based on React Native v 0.73.9 Now that starting from August 31 2025: New apps and app updates must target Android 15 (API level 35) or higher to be submitted to Google Play. Do i need to upgrade my react native project to higher version?


Solution

  • you can change the targetSdkVersion within android/build.gradle to 35:

    android {
        ndkVersion rootProject.ext.ndkVersion
        buildToolsVersion rootProject.ext.buildToolsVersion
        compileSdk rootProject.ext.compileSdkVersion
    
        namespace "com.rndiffapp"
        defaultConfig {
            applicationId "com.rndiffapp"
            minSdkVersion rootProject.ext.minSdkVersion
            targetSdkVersion 35
            versionCode 1
            versionName "1.0"
        }
        signingConfigs {
            debug {
                storeFile file('debug.keystore')
                storePassword 'android'
                keyAlias 'androiddebugkey'
                keyPassword 'android'
            }
        }
        buildTypes {
            debug {
                signingConfig signingConfigs.debug
            }
            release {
                // Caution! In production, you need to generate your own keystore file.
                // see https://reactnative.dev/docs/signed-apk-android.
                signingConfig signingConfigs.debug
                minifyEnabled enableProguardInReleaseBuilds
                proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
            }
        }
    }
    

    This is sufficient to meet the requirements.