react-native-quick-crypto
react-native-quick-crypto copied to clipboard
Path name or lenght issue when develop - Windows 11
I've noticed a "No such file or directory" error a couple of times when I start running the project on my cell phone. Here I have screenshots of the same project in different folders, one of them does not generate an error and the other does.
In this example the project path is "C:\Users\User\Github\Ethereum-Mexico-America-2022---Private\ReDo". ReDo is the name of the project.
Error:
FAILURE: Build 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\User\Github\Ethereum-Mexico-America-2022---Private\ReDo\node_modules\react-native-quick-crypto\android\.cxx\Debug\1h3f4u5j\arm64-v8a'
[1/25] Building CXX object CMakeFiles/reactnativequickcrypto.dir/d16596815ec437ebf6b0761cde9f9efb/cpp/Utils/MGLDispatchQueue.cpp.o
[2/25] Building CXX object CMakeFiles/reactnativequickcrypto.dir/d16596815ec437ebf6b0761cde9f9efb/cpp/JSIUtils/MGLTypedArray.cpp.o
ninja: build stopped: .
C++ build system [build] failed while executing:
@echo off
"C:\\Users\\VAI\\AppData\\Local\\Android\\Sdk\\cmake\\3.22.1\\bin\\ninja.exe" ^
-C ^
"C:\\Users\\VAI\\Github\\Ethereum-Mexico-America-2022---Private\\ReDo\\node_modules\\react-native-quick-crypto\\android\\.cxx\\Debug\\1h3f4u5j\\arm64-v8a" ^
reactnativequickcrypto
from C:\Users\VAI\Github\Ethereum-Mexico-America-2022---Private\ReDo\node_modules\react-native-quick-crypto\android
ninja: error: mkdir(CMakeFiles/reactnativequickcrypto.dir/C_/Users/VAI/Github/Ethereum-Mexico-America-2022---Private/ReDo/node_modules/react-native-quick-crypto): No such file or directory
But when i copy and paste the SAME project on another folder "C:\Users\User\Github\Light-Private\ReDo". Everything works perfectly.
> Task :react-native-quick-crypto:buildCMakeDebug[arm64-v8a]
> Task :react-native-quick-crypto:configureCMakeDebug[armeabi-v7a]
> Task :react-native-quick-crypto:buildCMakeDebug[armeabi-v7a]
> Task :react-native-quick-crypto:configureCMakeDebug[x86]
> Task :react-native-quick-crypto:buildCMakeDebug[x86]
> Task :react-native-quick-crypto:configureCMakeDebug[x86_64]
> Task :react-native-quick-crypto:buildCMakeDebug[x86_64]
> Task :react-native-quick-crypto:mergeDebugJniLibFolders
> Task :react-native-safe-area-context:mergeDebugJniLibFolders
> Task :react-native-safe-area-context:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-safe-area-context:copyDebugJniLibsProjectOnly
> Task :react-native-quick-crypto:mergeDebugNativeLibs
> Task :react-native-screens:configureCMakeDebug[arm64-v8a]
> Task :react-native-quick-crypto:copyDebugJniLibsProjectOnly
Do we have to take into account the name of the projects or folders? Or can't the path have a certain length?
Does #303 solve this issue for you?