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

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'



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章