在项目“:@unimodules_react-native-adapter”中找不到路径为“:unimodules-core”的项目

Boh*_*end 5 android gradle react-native

从另一个开发人员那里接手 RN 项目并尝试为 Android 构建一个版本,但是 Gradle 一直给我这个问题:

ERROR: Project with path ':unimodules-core' could not be found in project ':@unimodules_react-native-adapter'.

我能找到的唯一解决方案是添加 settings.gradle 文件:

include ':@unimodules_react-native-adapter'
project(':@unimodules_react-native-adapter').projectDir = new File(rootProject.projectDir, '../node_modules/@unimodules/react-native-adapter/android')
Run Code Online (Sandbox Code Playgroud)

但这对我不起作用。

我已经链接了我尝试过的 npm 和 yarn

项目正在使用:

 "@unimodules/core": "^3.0.2",
 "@unimodules/react-native-adapter": "^3.0.0",
Run Code Online (Sandbox Code Playgroud)

Gradle 将我引导至该@unimodules/react-native-adapter/android/build.gradle文件:

apply from: project(":unimodules-core").file("../unimodules-core.gradle")
Run Code Online (Sandbox Code Playgroud)

任何可能出错的指导,将不胜感激

Boh*_*end 0

设法通过删除项目、再次克隆它并仅运行yarn而不是尝试npm和yarn来修复它。