I tried some solutions proposed here but they didn't work, what worked for me was to follow this tutorial Fix Error Resolving Plugin [id: com.facebook.react.settings] in React Native CLI | Step-by-Step
Basically, you have to delete /android/.gradle
and then in the file build.gradle
upgrade the gradle version. In the video (and it was the same for me) he went from 8.10.2
to 8.11.1
.