react-native-quick-crypto icon indicating copy to clipboard operation
react-native-quick-crypto copied to clipboard

Error in RN v0.71.7

Open JorgeLpzGnz opened this issue 1 year ago • 4 comments

I'm having an error after downloading the react-native-quick-crypto, I'm using the RN v0.71.7, i wanna create wallet using ethers.js v6.3.0, i'm also using node-libs-react-native to set the node core modules, and i want to patch this library and change react-native-crypto for this library, but before using the react-native-quick-crypto in anywhere, i'm getting this error:

`> Task :react-native-quick-crypto:buildCMakeDebug[arm64-v8a] FAILED C/C++: ninja: error: mkdir(CMakeFiles/reactnativequickcrypto.dir/C_/Users/geolg/OneDrive/Escritorio/Metalorian_Dao/wallet/TheMetalorian_wallet): No such file or directory

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings 276 actionable tasks: 37 executed, 239 up-to-date

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong: Execution failed for task ':react-native-quick-crypto:buildCMakeDebug[arm64-v8a]'.

com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\Users\geolg\OneDrive\Escritorio\Metalorian_Dao\wallet\TheMetalorian_wallet\node_modules\react-native-quick-crypto\android.cxx\Debug\3r23s6a3\arm64-v8a' ninja: build stopped: .

C++ build system [build] failed while executing: @echo off "C:\Users\geolg\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe" ^ -C ^ "C:\Users\geolg\OneDrive\Escritorio\Metalorian_Dao\wallet\TheMetalorian_wallet\node_modules\react-native-quick-crypto\android\.cxx\Debug\3r23s6a3\arm64-v8a" ^ reactnativequickcrypto from C:\Users\geolg\OneDrive\Escritorio\Metalorian_Dao\wallet\TheMetalorian_wallet\node_modules\react-native-quick-crypto\android ninja: error: mkdir(CMakeFiles/reactnativequickcrypto.dir/C_/Users/geolg/OneDrive/Escritorio/Metalorian_Dao/wallet/TheMetalorian_wallet): No such file or directory

  • 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. ==============================================================================

2: Task failed with an exception.

  • What went wrong: java.lang.StackOverflowError (no error message)

  • 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 18s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong: Execution failed for task ':react-native-quick-crypto:buildCMakeDebug[arm64-v8a]'.

com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\Users\geolg\OneDrive\Escritorio\Metalorian_Dao\wallet\TheMetalorian_wallet\node_modules\react-native-quick-crypto\android.cxx\Debug\3r23s6a3\arm64-v8a' ninja: build stopped: .

C++ build system [build] failed while executing: @echo off "C:\Users\geolg\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe" ^ -C ^ "C:\Users\geolg\OneDrive\Escritorio\Metalorian_Dao\wallet\TheMetalorian_wallet\node_modules\react-native-quick-crypto\android\.cxx\Debug\3r23s6a3\arm64-v8a" ^ reactnativequickcrypto from C:\Users\geolg\OneDrive\Escritorio\Metalorian_Dao\wallet\TheMetalorian_wallet\node_modules\react-native-quick-crypto\android ninja: error: mkdir(CMakeFiles/reactnativequickcrypto.dir/C_/Users/geolg/OneDrive/Escritorio/Metalorian_Dao/wallet/TheMetalorian_wallet): No such file or directory

  • 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. ==============================================================================

2: Task failed with an exception.

  • What went wrong: java.lang.StackOverflowError (no error message)

  • 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 18s

at makeError (C:\Users\geolg\OneDrive\Escritorio\Metalorian_Dao\wallet\TheMetalorian_wallet\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at C:\Users\geolg\OneDrive\Escritorio\Metalorian_Dao\wallet\TheMetalorian_wallet\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (C:\Users\geolg\OneDrive\Escritorio\Metalorian_Dao\wallet\TheMetalorian_wallet\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:82:7)
at async Command.handleAction (C:\Users\geolg\OneDrive\Escritorio\Metalorian_Dao\wallet\TheMetalorian_wallet\node_modules\@react-native-community\cli\build\index.js:108:9)

info Run CLI with --verbose flag for more details.`

JorgeLpzGnz avatar May 25 '23 20:05 JorgeLpzGnz

Has anyone found a fix for this yet?

I am also experiencing the same issue

Awethentique avatar Jul 20 '23 05:07 Awethentique

I am also experiencing the same issue

jurjees23 avatar Aug 14 '23 18:08 jurjees23

Same issue here

sebasbeleno avatar Sep 28 '23 18:09 sebasbeleno

Worked after updating the android/build.gradle dependencies:

dependencies {
-     classpath("com.android.tools.build:gradle:4.2.1")
+     classpath("com.android.tools.build:gradle:7.3.1")
      classpath 'com.google.gms:google-services:4.3.10'
}

sebasbeleno avatar Sep 28 '23 18:09 sebasbeleno

Also, try the latest 0.7.0-rc.X release candidates.

boorad avatar May 12 '24 13:05 boorad