我正在使用React Navigation v5安装了所有依赖项。现在我正在获得上述错误。 失败:构建失败,并出现异常。
* What went wrong:
Execution failed for task ':react-native-screens:compileDebugJavaWithJavac'.
> java.lang.reflect.UndeclaredThrowableException
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings
答案 0 :(得分:1)
我认为这个问题在GitHub问题上仍然存在-> View
如果您的React Native版本<0.60,那么您可以使用Jetifier解决此问题
How to use Jetifier to solve ?
yarn add --dev jetify
"postinstall": "jetify"
如果您的React Native版本为0.60>,请尝试
cd android && ./gradlew clean