React Native Task :app:validateSigningDebug FAILED [英] React Native Task :app:validateSigningDebug FAILED
问题描述
我对 react-native 和 android 完全陌生.我从 Github 下载了一个项目,并使用命令 yarn install
和 react-native run-android
来运行该项目.但得到这个错误.似乎无法理解原因.我该怎么办?
I am completely new to react-native and android. I have downloaded a project from Github and used commands yarn install
and react-native run-android
to run the project. but getting this error. Can't seem to understand the reason. What should I do?
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
推荐答案
问题是构建正在寻找调试密钥库,但找不到.
The problem is that the build is looking for the debug keystore and cannot find it.
未找到用于签署配置调试"的密钥库文件 /home/tawsif/react native/react-native-redux/android/app/debug.keystore
.
Keystore file
/home/tawsif/react native/react-native-redux/android/app/debug.keystore
not found for signing config 'debug'.
React Native GitHub 中存在同样的问题.根据该页面,您可以通过创建调试密钥库来解决它.引自线程:
There's an issue with the same problem in React Native GitHub. According to the page, you can solve it by creating a debug keystore. Quote from the thread:
您可以通过在android/app/
目录: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 Task :app:validateSigningDebug FAILED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!