1
resposta

Versão do gradle dando problema na build

Boa tarde prezados, Estava com alguns problemas no navigator com a minha versão do app(versão que estava codificando)e resolvi apagar e baixar o projeto de novo. Peguei a versão da aula 5 - Mais opções de navegação. O problema agora é que quando tento fazer o build do projeto, aparece um erro no terminal falando sobre a versão do gradle. ->

> Task :app:validateSigningDebug FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings
69 actionable tasks: 2 executed, 67 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:validateSigningDebug'.
> Keystore file 'C:\Users\chris\Documents\trabalho\exercicios\react-native\instalura\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 9s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:validateSigningDebug'.
> Keystore file 'C:\Users\chris\Documents\trabalho\exercicios\react-native\instalura\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 9s

    at checkExecSyncError (child_process.js:616:11)
    at execFileSync (child_process.js:634:13)
    at runOnAllDevices (C:\Users\chris\Documents\trabalho\exercicios\react-native\instalura\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:74:39)
    at buildAndRun (C:\Users\chris\Documents\trabalho\exercicios\react-native\instalura\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
    at then.result (C:\Users\chris\Documents\trabalho\exercicios\react-native\instalura\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12)
    at process._tickCallback (internal/process/next_tick.js:68:7)

O que fazer?

Abs

1 resposta

Keystore file 'C:\Users\chris\Documents\trabalho\exercicios\react-native\instalura\android\app\debug.keystore' not found for signing config 'debug'.

Aparentemente ele não encontrou o debug.keystore, já tentou criar um novo debug.keystore?