gpt4 book ai didi

react-native - react native 任务 :app:validateSigningDebug FAILED

转载 作者:行者123 更新时间:2023-12-03 14:30:51 32 4
gpt4 key购买 nike

我对 react-native 和 android 完全陌生。我从 Github 下载了一个项目并使用了命令 yarn installreact-native run-android运行项目。但得到这个错误。似乎无法理解原因。我该怎么办?

info Starting JS server...
info Installing the app...
> Task :app:validateSigningDebug FAILED

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.4.1/userguide/command_line_interface.html#sec:command_line_warnings
17 actionable tasks: 17 executed

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:validateSigningDebug'.
> Keystore file '/home/tawsif/react native/react-native-redux/android/app/debug.keystore' not found for signing config 'debug'.

* 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

BUILD FAILED in 4s

最佳答案

问题是构建正在寻找调试 keystore 但找不到它。

Keystore file /home/tawsif/react native/react-native-redux/android/app/debug.keystore not found for signing config 'debug'.



React Native GitHub 中存在同样的问题。根据该页面,您可以通过创建调试 keystore 来解决它。引自线程:

You can generate the debug keystore by running this command in the android/app/ directory: keytool -genkey -v -keystore debug.keystore
-storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000



问题链接: https://github.com/facebook/react-native/issues/25629

关于react-native - react native 任务 :app:validateSigningDebug FAILED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57104357/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com