Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Taking over RN project from another developer and trying to make a build for Android, however Gradle keeps giving me this issue:

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

The only solution I could find regarding this is adding settings.gradle file:

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

but this doesn't work for me.

I have linked the native dependecies I have tried npm and yarn

Project is using:

 "@unimodules/core": "^3.0.2",
 "@unimodules/react-native-adapter": "^3.0.0",

Gradle is directing me to the @unimodules/react-native-adapter/android/build.gradle file:

apply from: project(":unimodules-core").file("../unimodules-core.gradle")

Any guidance of what could possible be wrong, would greatly be appreciated

like image 742
Bohrend Avatar asked Oct 14 '19 12:10

Bohrend


2 Answers

Something that solved this for me was removing: @unimodules/react-native-adapter from dependencies entirely.

like image 75
Franco Petra Avatar answered Nov 15 '22 04:11

Franco Petra


I solved my issue by installing react-native-unimodules.

$> yarn add react-native-unimodules

like image 20
A. Herlas Avatar answered Nov 15 '22 04:11

A. Herlas