You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

React Native Android应用编译时CMake无法找到ReactAndroid和fbjni依赖包问题求助

React Native Android应用编译时CMake无法找到ReactAndroid和fbjni依赖包问题求助

大家好,我最近在尝试运行React Native的Android版本应用时,遇到了编译失败的问题,抛出了CMake相关的错误,具体内容如下:

错误详情

CMake Error at CMakeLists.txt:85 (find_package):
Could not find a package configuration file provided by "ReactAndroid" with
any of the following names:

CMake Error at CMakeLists.txt:50 (find_package):
Could not find a package configuration file provided by "fbjni" with any of
the following names:

从日志信息来看,这个问题似乎和项目根目录下的build.gradle配置以及Kotlin版本有关,但我暂时没理清具体的解决思路,有没有大佬能帮忙分析一下该怎么解决这个问题呀?

备注:内容来源于stack exchange,提问作者Vishal Gadhiya

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 10:39:35