我对原生和安卓系统完全陌生.我从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

推荐答案

问题是生成正在查找调试密钥库,但找不到它.

找不到用于签名配置"调试"的密钥库文件/home/tawsif/react native/react-native-redux/android/app/debug.keystore.

React Native GitHub中也存在同样的问题.根据页面,您可以通过创建调试密钥库来解决这个问题.引自帖子:

可以通过在中运行此命令来生成调试密钥库

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

React-native相关问答推荐

ReactNative如何在填充编辑表单 timeshift 除按钮禁用状态

如何根据设备主题更改React Native中状态栏的背景?

React Native Axios 通过数组的键过滤

react平面列表渲染项

从 .apk 到 .aab 的本地构建版本react,如何将应用程序发送给客户端?

React Native 获取视图相对于屏幕的绝对位置

如何更改 React Native(android)应用程序的远程推送通知图标

如何在 React Native For Android 中删除启动画面后的白屏

在 react-native 元素中更改 android 和 ios 的入口文件路径

react-native:如何在离线模式下在模拟器上运行应用程序?

ld:找不到-lFirebaseCore clang的库: error: linker command failed with exit code 1 (use -v to see invocation)

以编程方式在 React Native 中添加组件

React Native:fetch request failed with error - TypeError: Network request failed(…)

props验证中缺少 React Navigation 'navigation'

React Nativedropped so far性能监视器计数不断增加

如何在不使用 JSX 的情况下在 React Native 中制作组件?

删除某些屏幕的顶部导航栏

如何在样式组件之外获取主题?

列之间的 React Native FlatList 分隔符

无法读取未定义的属性 string| React.PropTypes | LayoutPropTypes.js