Error:(33, 0) Gradle DSL method not found: 'apt()'

来源:互联网 发布:linux中批量删除用户 编辑:程序博客网 时间:2024/05/29 08:13

gradle配置会碰到的问题

错误:
Error:(33, 0) Gradle DSL method not found: 'apt()'
Possible causes:<ul><li>The project 'TestSlider' may be using a version of Gradle that does not contain the method.
<a href="openGradleSettings">Gradle settings</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>

解决方法:

在当前.gradle文件中添加:
apply plugin: 'android-apt'


classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'



0 0
原创粉丝点击