AS:Error:(27, 0) Could not find method...

初学者一枚,练习的时候,按例向app/build.gradle中添加依赖库。语法如下:
dependencies {
provided fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:recyclerview-v7:25.1.0'
testCompile 'junit:junit:4.12'
}

Sync后发现

Error:(27, 0) Could not find method provided() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

善用搜索一波后依然无力...求大神赐教。

感谢。

把provided改成compile