react-native-unimodules icon indicating copy to clipboard operation
react-native-unimodules copied to clipboard

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

Open jamiephillips0000 opened this issue 4 years ago • 9 comments

This is the environment

"react-native": "^0.62.2",

"@unimodules/core": "^5.3.0",

"@unimodules/react-native-adapter": "^5.4.0",

This is the error


* Where:
Build file ~/App/node_modules/@unimodules/react-native-adapter/android/build.gradle' line: 68

* What went wrong:
A problem occurred evaluating project ':@unimodules_react-native-adapter'.
> Project with path ':unimodules-core' could not be found in project ':@unimodules_react-native-adapter'.

the offending line seems to be here apply from: project(":unimodules-core").file("../unimodules-core.gradle") the relative path "../unimodules-core.gradle" from this node_modules/@unimodules/react-native-adapter/android/build.gradle does not exist.


@unimodules
    |
    - core
        |
        - unimodules-core.gradle. << I think it is trying to include this?
    -react-native-adapter
        |
         - android
            |
            - build.gradle << the relative path "../unimodules-core.gradle" does not resolve from here

is there any work around for this?

jamiephillips0000 avatar Jul 23 '20 09:07 jamiephillips0000

@jamiephillips0000 Facing the same issue. Found any solution ?

Tejaswini-PD avatar Oct 22 '20 09:10 Tejaswini-PD

+1

kimberleyvarona avatar Nov 03 '20 09:11 kimberleyvarona

+1

letrungduong113 avatar Nov 04 '20 08:11 letrungduong113

+1

chrisunl avatar Nov 09 '20 14:11 chrisunl

Anyone with a fix?

josh4500 avatar Nov 19 '20 01:11 josh4500

+1

hungluongkong avatar Nov 26 '20 04:11 hungluongkong

Anyone with a fix?

Removing all expo related modules solved my problem.

josh4500 avatar Nov 26 '20 07:11 josh4500

+1

ericV-li avatar Dec 02 '20 06:12 ericV-li

I followed these steps to install react-native-unimodules and I got that error because I didn't have the settings.gradle file in android folder. Once I added that file and added this line apply from: '../node_modules/react-native-unimodules/gradle.groovy'; includeUnimodulesProjects () to it, the error is gone.

Lisba avatar Jan 08 '21 20:01 Lisba