nitish24p / react-native-upi

A tiny module for Adding payments via UPI in your react native apps ❤️
MIT License
77 stars 30 forks source link

project with path ':react-native-api-payment' could not found in root project #3

Closed cullsin closed 5 years ago

cullsin commented 5 years ago

Hi,

I am getting the below error message, "project with path ':react-native-api-payment' could not found in root project"

There are two build.gradle file. I just did the latest react-native-cli.

One of the build.grade dependency says that,

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files

Please suggest me.

image

nitish24p commented 5 years ago
include ':react-native-upi-payment'
project(':react-native-upi-payment').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-upi-payment/android')

It should be react-native-upi-payment not react-native-upi

goldenaman commented 1 year ago

I ejected a expo app and tried following the steps here https://www.npmjs.com/package/react-native-upi-payment

getting error A problem occurred evaluating project ':react-native-upi-payment'. Could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.