Task `react-native-reanimated:generateJsonModelDebug` fails on Windows due to CMake
See original GitHub issueDescription
I created a new project with npx react-native init with react-native version 0.68.0, then I installed react-native-reanimated and tried to build the project. But I had an error:
* What went wrong:
Execution failed for task ':react-native-reanimated:generateJsonModelDebug'.
> exception while building Json A problem occurred starting process 'command 'C:\Users\29416\AppData\Local\Android\sdk\cmake\3.18.1-2\bin\cmake.exe''
Steps to reproduce
- Start new project with npx react-native init AwesomeProject --version 0.68.0
- Install react-native-reanimated
- Build the project
I tried gradlew clean command
Snack or a link to a repository
n/a
Reanimated version
2.10.0
React Native version
0.68.0
Platforms
Android
JavaScript runtime
No response
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
No response
Device model
No response
Acknowledgements
Yes
Issue Analytics
- State:
- Created a year ago
- Comments:23 (6 by maintainers)
Top Results From Across the Web
VS 2022 cross-compile in WSL2 fails (CMake error?)
VS 2022 cross-compile in WSL2 fails (CMake error?) ... HandleNonSuccessAndDebuggerNotification(Task task); at Microsoft.VisualStudio.CMake.
Read more >CMAKE build task failing to find cmake command
It's the quotes around. "c:\program files\cmake\bin". in the PATH variable that causes the problem. path.resolve() turns this in to.
Read more >CMake 3.12+ version requirements definition fails for native ...
The new way, to define CMake version requirements as of CMake 3.12+ fails with the CMake ... task) at Microsoft.VisualStudio.CMake.Project.CMakeListsUtils.
Read more >error MSB6004: The specified task executable location "C ...
Thanks for your attention! My CMakeLists.txt : cmake_minimum_required(VERSION 3.22) project(test). Output: -- Selecting Windows SDK ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Had same issue. Maybe related to this.
#3516
Try to reinstall react-native-reanimated to latest version, this solved the issue for me using this command to do that
npm uninstall react-native-reanimated && npm install react-native-reanimated@latest