其实就是正常的导入一个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>

截图如下:

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

出问题题的地方如下:

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

解决好之后如下:

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

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


相关文章:

  • 2021-11-13
  • 2021-03-31
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-19
  • 2021-11-30
  • 2021-10-22
  • 2022-12-23
  • 2022-01-30
  • 2022-01-16
  • 2022-12-23
相关资源
相似解决方案