question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Task `react-native-reanimated:generateJsonModelDebug` fails on Windows due to CMake

See original GitHub issue

Description

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

  1. Start new project with npx react-native init AwesomeProject --version 0.68.0
  2. Install react-native-reanimated
  3. 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:open
  • Created a year ago
  • Comments:23 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Guccieiicommented, Sep 1, 2022

Had same issue. Maybe related to this.

#3516

0reactions
Ranjithramesh67commented, Nov 30, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found