Open alexhernandez opened 1 year ago
I have same issue
trying to find a fix, I will notify u if I find one and please also lmk if u are able to fix it
Just reduce the path, I placed the directory in the root and it worked. Then after that you will face another issue with a missing file, for that you will have to use ndkVersion = "25.2.9519653"
I placed the directory in the root and it worked.
Which directory? Do you have a code example?
have you got the answer i am still stuck same error
us bro us. im trying with changing versions
Unfortunately it's windows issue. Workaround
Try these steps:
Download the Latest Version of Ninja:
ninja.exe
in $SDK_PATH$\cmake\$CMAKE_VERSION$\bin
with the newly downloaded version.Update the build.gradle
File:
android/app/build.gradle
.android.defaultConfig
block, add the following code:externalNativeBuild {
cmake {
arguments "-DCMAKE_MAKE_PROGRAM=$YOUR_CMAKE_NINJA_PATH$", "-DCMAKE_OBJECT_PATH_MAX=1024"
}
}
Make sure to update $YOUR_CMAKE_NINJA_PATH$
with the correct path to your ninja.exe
file. For example, it might look something like E:\\SDK\\cmake\\3.22.2\\bin\\ninja.exe
on Windows.
Enable Long Path Support in Windows:
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
This will allow Windows to support file paths longer than 260 characters.
Following these steps should help you bypass the path length limitation and resolve the issue.
Hi 👋, I've been getting the following error on android only when building a react native app with Hermes and Fabric enabled. Not sure if this a known issue or if anyone knows a solution for this.
My Issue:
My System info: