Android Studio 报错集
根据个人在开发使用过程中遇到的错误为契机,将Android Studio的报错汇集一起,做一个记录,也提供给各位参考:
1、Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use ‘annotationProcessor’ configuration instead.
解决方案:
plugin开始,第三方android-adt不在受支持,所以我们将项目中的adt 替换成 annotationProcessor。以Banner为例:
将 app下的adt依赖替换成 annotationProcessor,然后将apply plugin: ‘android-apt’去除:

将根目录下的build.gradle 中的依赖移除:

本文针对Android Studio开发中出现的特定错误进行了解析,并提供了有效的解决方案。主要关注于如何替换已不再受支持的第三方插件,确保项目正常编译。
670

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



