While developing an app I came into following error. I tried downgrading the java version from 11 to 8, but that wasn\'t helpful.
FAILURE: Build failed with
I had this issue too and I was able to fix it by creating a new project in react-native 0.57.3 using the command: react-native init --version="0.57.3" MyNewApp
react-native init --version="0.57.3" MyNewApp