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