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'
本文介绍了解决 Gradle 构建过程中出现的 'apt()' 方法未找到的错误。该问题可能由项目使用的 Gradle 版本不包含此方法或者缺少相应的插件引起。文章提供了具体的解决步骤,包括在 build.gradle 文件中应用 android-apt 插件。
1764

被折叠的 条评论
为什么被折叠?



