当前位置: 首页 > 知识库问答 >
问题:

反应本机任务:app:ValidateSigningDebug失败

元昊苍
2023-03-14
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

共有1个答案

羊禄
2023-03-14

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

Keystore文件/home/tawsif/react native/react-native-redux/android/app/debug.Keystore没有为配置“debug”签名。

React原生GitHub中也存在同样的问题。根据该页,您可以通过创建调试密钥库来解决它。引用线程:

 类似资料:
  • null 这工作得很好,但对于下面的命令,我得到一个错误 错误: > 错误:任务“:app:InstallRelease”执行失败。 com.android.builder.testing.api.deviceException:com.android.ddmlib.installexception:install_failed_update_incompatible:包io.nativebase

  • 任务': app: Process DebugResources'执行失败。 Android资源链接失败/home/mahesh/.gradle/caches/transforms-2/files-2.1/c0fe0d468b2d9842e23d5a9c1c80a565/res/values/values。xml:731:5-756:25:AAPT:error:resource-android:a

  • 我在“React-Native Run-Android”上面临这个问题。我没有工作我的代码大约2个月。今天,我不得不做一些改变。但我不能在模拟器上运行。 Android/Build.Gradle

  • \android\app\build\中介\清单\完整\调试\AndroidManifest.xml:61: AAPT:错误:资源mipmap/ic_notif(又名...: mipmap/ic_notif)未找到。 错误:处理清单失败。 失败:构建失败,出现异常。 问题所在:任务“:app:processDebugResources”的执行失败。无法处理资源,有关详细信息,请参阅上面的 aapt

  • 安装应用程序失败。确保已设置Android开发环境:https://reactnative.dev/docs/environment-setup.错误:命令失败:gradlew。bat应用程序:installDebug-PreactNativeDevServerPort=8081 e:C:\todo app\node\u modules\react native手势处理程序\android\src

  • 我正在使用assembleRelease准备发布构建,但我得到了这个错误。 配置项目:项目中的应用程序配置“编译”:不推荐使用“app”。请改用“实现”。 配置项目 :rn-fetch-blob CompileOptions.bootClasspath 属性已被弃用,并计划在 Gradle 5.0 中删除。请改用 CompileOptions.bootstrapClasspath 属性。 配置项目