I have code that uses the package org.firstinspires.ftc:RobotCore
. I am trying to import it using gradle, but it gives me this error:
Could not find method implementation() for arguments [org.firstinspires.ftc:RobotCore:9.2.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
I’m relatively new to gradle, and I have no clue why this is happening. All the sample code I can find says the exact same thing but it errors for me.
Here is my file structure:
Here is the ftNEW/fancytelemetry/build.gradle:
//apply from: '../build.common.gradle'
apply from: '../build.dependencies.gradle'
repositories {
mavenCentral()
google() // Needed for androidx
}
dependencies {
implementation "org.firstinspires.ftc:RobotCore:9.2.0"
}
The ftNEW/build.gradle:
version "1.0"
And the ftNEW/build.dependencies.gradle:
repositories {
mavenCentral()
google() // Needed for androidx
}
dependencies {
implementation 'org.firstinspires.ftc:RobotCore:9.2.0'
}
I’m using gradle 8.7.
Thanks in advance!
You need to sign in to view this answers