已解决:Gradle DSL method not found: 'compile()'

来源:互联网 发布:淘宝联盟赚钱是真的吗 编辑:程序博客网 时间:2024/05/16 16:03

其实就是正常的导入一个lib,就出现的如下错误,蒙蔽了!!!

错误信息如下:

Error:(38, 0) Gradle DSL method not found: 'compile()'
Possible causes:<ul><li>The project 'KotlinTest' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
<a href="fixGradleElements">Upgrade plugin to version 2.3.3 and sync project</a></li><li>The project 'KotlinTest' may be using a version of Gradle that does not contain the method.
<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>

截图如下:


出问题题的地方如下:


解决好之后如下:


这种问题真是蛋疼,专虐小白........


阅读全文
1 0
原创粉丝点击