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

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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (6 by maintainers)

Most upvoted comments

This worked for me

yarn remove react-native-reanimated yarn add react-native-reanimated@latest

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

Had same issue. Maybe related to this.

#3516