Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find method provided() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler #238

Open
suriya619 opened this issue Sep 28, 2023 · 2 comments

Comments

@suriya619
Copy link

suriya619 commented Sep 28, 2023

Hi, i am facing this issue.

package version:
"@terrylinla/react-native-sketch-canvas": "^0.8.0",

android\app\build.gradle
include ':@terrylinla_react-native-sketch-canvas'
project(':@terrylinla_react-native-sketch-canvas').projectDir = new File(rootProject.projectDir, '../node_modules/@terrylinla/react-native-sketch-canvas/android')

error:
A problem occurred evaluating project ':@terrylinla_react-native-sketch-canvas'.

Could not find method provided() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Screenshot 2023-09-28 123334

Screenshot 2023-09-28 123413

@nasy
Copy link

nasy commented Nov 7, 2023

Hey, I am having the same issue, did you find a solution?

@nasy
Copy link

nasy commented Nov 7, 2023

Found a solution:

@terrylinla/react-native-sketch-canvas/android/build.gradle

dependencies {
    REMOVE -> provided "com.facebook.react:react-native:+"
    ADD -> implementation "com.facebook.react:react-native:+"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants