Skip to content

[0.82-rc.4] Android release fails to use gradle configuration caches #53990

@tjzel

Description

@tjzel

Description

Apps that uses Gradle caches fails to obtain the cache when assembling release builds in RN 0.82-rc.4. The problem didn't manifest in RN 0.82.rc-0.

The error:

- Task `:app:createBundleReleaseJsAndAssets` of type `com.facebook.react.tasks.BundleHermesCTask`: invocation of 'Task.project' at execution time is unsupported with the configuration cache.

To enable the caches add the following to your gradle.properties file.

# gradle.properties

org.gradle.configuration-cache=true
org.gradle.configuration-cache.problems=fail

I know that you can set org.gradle.configuration-cache.problems=warn to compile successfully but still there's a problem with the cache.

Steps to reproduce

  1. Create a new App with CLI npx @react-native-community/cli@latest init --skip-install --install-pods false GradleApp --version 0.82.0-rc.4.
  2. Install dependencies in the App.
  3. Edit your gradle.properties to enable caching.
  4. Run yarn android --mode Release --activeArchOnly and see that a cache problem arises.

React Native Version

0.82.0-rc.4

Affected Platforms

Runtime - Android

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

System:
  OS: macOS 15.6
  CPU: (14) arm64 Apple M4 Pro
  Memory: 1.53 GB / 24.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.14.0
    path: ~/.nvm/versions/node/v22.14.0/bin/node
  Yarn:
    version: 4.10.3
    path: ~/.nvm/versions/node/v22.14.0/bin/yarn
  npm:
    version: 10.9.2
    path: ~/.nvm/versions/node/v22.14.0/bin/npm
  Watchman:
    version: 2025.03.03.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods: Not Found
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.0
      - iOS 26.0
      - macOS 26.0
      - tvOS 26.0
      - visionOS 26.0
      - watchOS 26.0
  Android SDK:
    API Levels:
      - "34"
      - "35"
      - "36"
    Build Tools:
      - 35.0.0
      - 36.0.0
    System Images:
      - android-35 | Google Play ARM 64 v8a
      - android-36 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2025.1 AI-251.26094.121.2512.13991807
  Xcode:
    version: 26.0/17A324
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.13
    path: /usr/bin/javac
  Ruby:
    version: 3.1.6
    path: /Users/bigpoppe/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.0
    wanted: 20.0.0
  react:
    installed: 19.1.1
    wanted: 19.1.1
  react-native:
    installed: 0.82.0-rc.4
    wanted: 0.82.0-rc.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

Stacktrace or Logs

- Task `:app:createBundleReleaseJsAndAssets` of type `com.facebook.react.tasks.BundleHermesCTask`: invocation of 'Task.project' at execution time is unsupported with the configuration cache.

MANDATORY Reproducer

https://www.no-repro.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