When creating a react native project and try to execute it with the * react-native run-android * command this error appears, it does not matter if it is direct on the physical device or the AVD.
I have already created several projects and the build fails every time
I've also tried to compile the app directly through * gradlew assembleDebug *, the error also appears.
I think it's related to the gradle but I could not solve it