其实就是正常的导入一个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>
截图如下:
出问题题的地方如下:
解决好之后如下:
这种问题真是蛋疼,专虐小白........