Skip to content

Conversation

@tjzel
Copy link
Contributor

@tjzel tjzel commented Dec 5, 2025

Summary:

Invoking Runtime.getRuntime().exec() is not compatible with Gradle Configuration Cache and providers should be used instead.

This error hasn't surfaced yet due to fact that this branch of code is rarely hit as the users usually provide correct path to the CLI in their app/build.gradle file. I stumbled upon it accidentally when bumping RN in monorepo and the CLI path was no longer valid.

Changelog:

[ANDROID] [FIXED] - RNGP using node invocation non-compatible with Gradle Compilation Cache

Test Plan:

I tested it in a rnc-cli app, where I provided an invalid path for cliFile - the error was fixed after applying this patch.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 5, 2025
@facebook-github-bot facebook-github-bot added p: Software Mansion Partner: Software Mansion Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Dec 5, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 5, 2025

@cortinico has imported this pull request. If you are a Meta employee, you can view this in D88492310.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Software Mansion Partner: Software Mansion Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants