terrylinla / react-native-sketch-canvas

A React Native component for drawing by touching on both iOS and Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

suriya619 opened this issue · comments

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

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

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:+"
}