Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

occurred configuring project ':app'. > Failed to notify project evaluation listener

I would like to start my first application react-native but when i write in the command line "react-native run-android" it say :

What went wrong:

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

Does anyone know what could be the problem?

like image 777
borgesi salvatore Avatar asked Apr 14 '17 16:04

borgesi salvatore


2 Answers

if you use windows env and use different java version change java version at system path as java 8.

java env example

like image 189
ikarayel Avatar answered Oct 16 '22 20:10

ikarayel


I had this same issue and it was due to having two versions of JDK installed v8 & v9. By removing v9, I was able to resolve the issue (Mac User).

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

Navigate to /Library/Java/JavaVirtualMachines and remove the v9 directory

sudo rm -rf {yourVersionName}.jdk

You should have v8 in that directory. If not you will need to install it.

like image 25
Matt Smith Avatar answered Oct 16 '22 19:10

Matt Smith