Skip to content

Conversation

@beau-house
Copy link

This PR fixes Android build failures on Gradle 8.x (React Native 0.71+).

The problem

destinationDir was deprecated in Gradle 7 and removed in Gradle 8, causing builds to fail with: "Could not get unknown property 'destinationDir' for task... of type org.gradle.api.tasks.compile.JavaCompile"

The fix

Replace destinationDir with destinationDirectory, which has been available since Gradle 6.1 (backward compatible).

References

Gradle 7 to 8 migration guide
destinatoinDirectory API docs

This is a small one line fix so I thought I'd just create a PR rather than opening an issue. Thank you for this library!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant