The project ': app' was set up. > Failed to notify listener on project evaluation

I would like to start my first responsive-native application, but when I write "react-native-run-android" on the command line, it says:

Something went wrong:

A problem occurred configuring project ':app'. > Failed to notify project evaluation listener. > javax/xml/bind/annotation/XmlSchema 

Does anyone know what the problem is?

+8
react-native react-native-android
source share
2 answers

I had the same problem and this was due to the fact that two versions of the JDK installed v8 and v9. By removing v9, I was able to solve the problem (Mac User).

If you only have version 9 installed, I would uninstall it and try v8.

Go to / Library / Java / JavaVirtualMachines and delete the v9 directory

 sudo rm -rf {yourVersionName}.jdk 

You must have v8 in this directory. If not, you will need to install it.

+8
source share

if you use windows env and use the java version with a modified version of the java version on the system path like java 8.

java env example

0
source share

All Articles