Android(安卓)Studio 报错集合解决方案
16lz
2021-01-24
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(安卓)压缩解压zip文件
- android 中 webview 怎么用 localStorage
- 在Ubuntu12.10-32bit上构建、测试WebRTC之Android示例WebRTCDemo
- Android常见错误之[email protected] that was originally
- Android中调用startActivity结果导致:java.lang.RuntimeException
- Android(安卓)SDK Manager更新 != 问题解决方法
- android Ant混淆打包遇到的几个问题 SDK 升级到4.0后
- Android(安卓)6.0运行时权限解决方案
- Android的Face++Demo错误1302