【问题标题】:I am building react native app . getitng some error in android build我正在构建 react native app 。在android构建中遇到一些错误
【发布时间】:2022-11-09 22:40:00
【问题描述】:

我的 react native app android build 出现问题,弹出此错误消息


Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':react-native-reanimated'.
> com.android.builder.errors.EvalIssueException: CMake '3.18.1' was not found in SDK, PATH, or by cmake.dir property.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

然后构建失败,如果有人知道这个问题,请帮我解决这个问题,我使用的是地铁而不是博览会

【问题讨论】:

    标签: javascript android react-native package


    【解决方案1】:

    您是否尝试在下面添加此行预设在 babel.config.js 文件中。插件:[ 'react-native-reanimated/plugin', ],

    最终看起来像这样

    【讨论】:

      【解决方案2】:
      • 打开 SDK 管理器
      • 切换到 SDK 工具选项卡
      • 安装 CMake(选择错误中突出显示的版本)

      【讨论】:

      • @Mennno 我尝试了同样的问题我必须重新启动吗
      • 是的,这可能会有所帮助。您使用的是什么操作系统?
      • @famo 您安装了哪个版本的 cmake?您可以单击Show Package Details 复选框以查看您的安装使用的版本。然后,您可以选择上面提到的确切版本。
      • @MennoSpijker 请用您回答正确的小细节编辑答案,然后我可以错误地评价我错误的评价
      • @dev404 tq 正确我使用了错误的版本
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-06-26
      • 2019-09-08
      • 2017-11-19
      • 2017-12-26
      • 2023-02-25
      • 1970-01-01
      • 2016-06-02
      相关资源
      最近更新 更多