配置项目“:app"时发生.>未能通知项目评估监听器 [英] occurred configuring project ':app'. > Failed to notify project evaluation listener
问题描述
我想启动我的第一个应用程序 react-native,但是当我在命令行中写入react-native run-android"时,它说:
I would like to start my first application react-native but when i write in the command line "react-native run-android" it say :
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?
推荐答案
我遇到了同样的问题,这是由于安装了两个版本的 JDK v8 &v9.通过删除 v9,我能够解决这个问题(Mac 用户).
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).
如果您只安装了版本 9,我会删除它并尝试使用 v8.
If you only have version 9 installed, I would remove it and try v8.
导航到/Library/Java/JavaVirtualMachines 并删除 v9 目录
Navigate to /Library/Java/JavaVirtualMachines and remove the v9 directory
sudo rm -rf {yourVersionName}.jdk
您应该在该目录中有 v8.如果没有,您将需要安装它.
You should have v8 in that directory. If not you will need to install it.
这篇关于配置项目“:app"时发生.>未能通知项目评估监听器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!