1. 程式人生 > >FAILURE: Build failed with an exception.

FAILURE: Build failed with an exception.

exceptio jdk run span eva project conf code nbsp

執行react-native run-android報錯:
A problem occurred configuring project :app.
Failed to notify project evaluation listener.
javax/xml/bind/annotation/XmlSchema

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

這是因為你的jdk版本是9,把jdk版本切換到8就行了。

原github issue:https://github.com/facebook/react-native/issues/15552#issuecomment-331943834

FAILURE: Build failed with an exception.