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

10,328

Solution 1

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

Solution 2

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

$> yarn add react-native-unimodules

Share:
10,328
Bohrend
Author by

Bohrend

Updated on June 18, 2022

Comments

  • Bohrend
    Bohrend almost 2 years

    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