Skip to content

App must target Android 15 (API level 35) or higher #53048

Description

@devudr

Description

Existing project configuration RN 0.71.7 35

buildToolsVersion = "34.0.0"
minSdkVersion = 28
compileSdkVersion = 35
targetSdkVersion = 35

below error

A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
aapt2 E 08-05 08:29:12 4361 713972 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
aapt2 E 08-05 08:29:12 4361 713972 ApkAssets.cpp:149] Failed to load resources table in APK '/Library/Android/sdk/platforms/android-35/android.jar'.
error: failed to load include path /Library/Android/sdk/platforms/android-35/android.jar.

Steps to reproduce

change 34 to 35 targetSdkVersion and compileSdkVersion

Existing project configuration RN 0.71.7 35

buildToolsVersion = "34.0.0"
minSdkVersion = 28
compileSdkVersion = 35
targetSdkVersion = 35

React Native Version

0.71.7

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info

macOS 14.5
memory 16gb

Stacktrace or Logs

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     aapt2 E 08-05 08:29:12  4361 713972 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
     aapt2 E 08-05 08:29:12  4361 713972 ApkAssets.cpp:149] Failed to load resources table in APK /Library/Android/sdk/platforms/android-35/android.jar'.
     error: failed to load include path /Library/Android/sdk/platforms/android-35/android.jar.

MANDATORY Reproducer

https://github.com/

Screenshots and Videos

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions