由于CMake Path版本而无法运行Android React-native应用程序

问题描述 投票:0回答:2

我正在尝试运行我的反应本地应用程序,但是当我这样做时,它会崩溃并给我这个错误:

Could not determine the dependencies of task ':react-native-reanimated:generateJsonModelDebug'.
> CMake '3.18.1' was not found in PATH or by cmake.dir property. 
CMake '3.22.4' found in PATH did not match requested version '3.18.1'.

我不明白这意味着什么,我相信这与反应新的套件有关。这个软件包有很多问题,我不知道如何解决它们。

任何帮助?

javascript android reactjs react-native cmake
2个回答
3
投票
这意味着您必须更新CMAKE版本并导出到您的路径目录。

开放的AndroidStudio
    Access SDKManager
  1. Access工具并找到了Cmake
  2. 单击显示包装详细信息
  3. 然后安装版本3.18.1
  4. If you are using or have upgraded to react native 0.77.0 then you should go into this /android/app/build/generated/source/buildConfig/debug/com/your_project_name/codegen and delete the codegen folder and try again

0
投票
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.