首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >app本机任务:app:validateSigningDebug失败

app本机任务:app:validateSigningDebug失败
EN

Stack Overflow用户
提问于 2019-07-19 01:10:51
回答 7查看 54.5K关注 0票数 53

我是全新的反应-本土的和android的。我已经从Github下载了一个项目,并使用命令yarn installreact-native run-android来运行该项目。但却犯了这个错误。似乎无法理解原因。我该怎么办?

代码语言:javascript
运行
复制
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
EN

回答 7

Stack Overflow用户

回答已采纳

发布于 2019-07-19 01:37:47

问题是,构建正在寻找调试密钥存储库,但找不到它。

无法找到用于签名配置“调试”的Keystore文件/home/tawsif/react native/react-native-redux/android/app/debug.keystore

在本机GitHub的反应中也存在同样的问题。根据页面,您可以通过创建调试密钥存储库来解决这个问题。引用线程的话:

可以通过在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

票数 99
EN

Stack Overflow用户

发布于 2019-09-16 18:00:20

只需从官方模板https://raw.githubusercontent.com/facebook/react-native/master/template/android/app/debug.keystore下载

debug.keystore复制到android/app/中。

例:mv ~/Downloads/debug.keystore /Users/lazaro/apps/myapp/android/app/

参考文献:https://github.com/facebook/react-native/issues/25629#issuecomment-513245590

票数 27
EN

Stack Overflow用户

发布于 2019-07-19 13:35:54

基于@rabbit87的答案,解决方案是在ProjectName/Andoid/app目录中运行以下命令解决这个问题

代码语言:javascript
运行
复制
keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
票数 14
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57104357

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档