我正在使用react导航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发布于 2022-06-04 08:07:03
在终端中运行此命令
//检查是否有任何deamon在运行。
//然后重新启动服务器
发布于 2020-02-20 06:18:02
我认为这个问题在GitHub -> 视图上仍然悬而未决。
如果您反应本地版本< 0.60,那么您可以使用Jetifier来解决这个问题。
yarn add --dev jetify"postinstall": "jetify"
如果您的ReactiveNativeVersion0.60>,那么尝试如下
cd android && ./gradlew clean发布于 2022-08-26 02:11:16
当您将您的react原生版本升级到0.69.1或更高版本时,它会将kotlin类路径插入到应用程序的build.gradle (android\build.gradle):依赖项{.classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10") -这条线.//注意:不要将应用程序依赖项放在这里;它们属于//在单个模块build.gradle文件中}
对不起我的英语
https://stackoverflow.com/questions/60313681
复制相似问题