Could not find method testCompile() for arguments [junit:junit:4.12] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler


(rtayek) #1

i have been using the build file below for a while with no problems.

suddenly i am getting this error message.

i am using gradle 3.1

repositories {
jcenter()
}
dependencies {
testCompile ‘junit:junit:4.12’
}
sourceCompatibility = 1.7
targetCompatibility = 1.7


(rtayek) #2

i accidently deleted the java plugin :frowning: