FAILURE: Build failed with an exception.
What went wrong: A problem occurred
configuring project ':app'. Failed to notify project evaluation listener. javax/xml/bind/annotation/XmlSchema
If anyone else having the same problem with the above fix not working - then try installing JDK 1.8 instead of JDK 1.9 and set the JAVA_HOME environment variables. This fixed it for me.
WINDOWS INSTRUCTIONS: To update your JAVA_HOME Environment Variable:
View Advanced System Settings
,missing JDK 1.8.0?
- Google "download Java JDK" and download it from oracle.com
Cleanup Phase: Press OK, OK, OK, OK
RESTART THE COMMAND PROMPT (if you encounter any issue now, try running Command Prompt as Administrator => right click, run as admin)
Now, try again (in the correct folder):
react-native run-android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With