Android studio 3.0 版本的出现的bug的总结
来源:互联网 发布:sha256算法详细 编辑:程序博客网 时间:2024/06/05 08:51
第一个问题:android-apt plugin is incompatible with future version of Android Gradle plugin. use 'annotationPro
Warning:android-apt plugin is incompatible with future version of Android Gradle plugin. Please use ‘annotationProcessor’ configuration instead.
原因:更新Android studio 原来项目出现问题。
分析: 尤其是采用butterknife工具的,采用新的Android Studio都会出现这样的问题,本人根据提示最后猜测原因可能是Android studio更新,然后gradle更新了,这样的话可能使原来的android-apt 工具跟不上节奏了,所以让采用annotationProcessor工具。
解决: 把project下的build.gradle 当中的依赖
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath ‘com.android.tools.build:gradle:2.4.0-alpha7’
classpath ‘com.neenbedankt.gradle.plugins:android-apt:1.8’
}
}
修改成如下:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath ‘com.android.tools.build:gradle:2.4.0-alpha7’
}
}
然后再把module下的build.gradle :
dependencies {
compile project(‘:roadvance-sdk’)
compile ‘com.google.dagger:dagger:2.10’
apt ‘com.google.dagger:dagger-compiler:2.10’
compile ‘com.android.support:appcompat-v7:25.3.1’
compile ‘com.jakewharton:butterknife:8.5.1’
apt ‘com.jakewharton:butterknife-compiler:8.5.1’
}
修改如下:
dependencies {
compile project(‘:roadvance-sdk’)
compile ‘com.google.dagger:dagger:2.10’
annotationProcessor ‘com.google.dagger:dagger-compiler:2.10’
compile ‘com.android.support:appcompat-v7:25.3.1’
compile ‘com.jakewharton:butterknife:8.5.1’
annotationProcessor ‘com.jakewharton:butterknife-compiler:8.5.1’
}
再把 apply plugin: ‘com.neenbedankt.android-apt ’ 这个引用给删除。
重新reBuild的一下
第二个问题:解决Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com
这个问题是Android studio升级到3.0之后,运行的时候会提示gradle要升级到3.5版本才能编译。于是我把我的gradle升级到了
classpath 'com.android.tools.build:gradle:3.0+'
minSdkVersion :***
- Android studio 3.0 版本的出现的bug的总结
- Android studio 3.0 版本的出现的bug
- transformClassesWithDexForDebug android studio运行时出现的bug
- ubuntu下安装Android Studio 流程以及出现的bug
- Android支持库版本不一致而出现的奇怪bug
- Android studio添加第三方类库时出现的版本不兼容问题
- 编码中常出现的BUG总结
- 关于Android Studio 更新到3.0版本以后出现的一些问题以及解决方案
- android studio 1.32版本 new module窗口看不全的bug
- VS2012运行最新版本的Cocos3.10出现的Bug
- Android studio更改版本studio的gradle
- Eclipse项目往Android studio 上移植 所出现的bug 和问题
- android studio 遇到的bug 收集
- Android Studio Instant Run 的一个bug
- Android Studio环境下EditText的BUG
- android studio 的一些bug修改
- android studio 移植的bug解决记录
- studio 或Android 一些搞笑的bug
- 何晖光:“深度学习类脑吗?”--- 基于视觉信息编解码的深度学习类脑机制研究 | VALSE2017之十四
- HTML条件注释判断浏览器版本<!--[if lt IE 9]>
- 宝贝不开直通车了会降权吗?如何提升产品权重
- 考试相关题目
- linux驱动开发--定时器
- Android studio 3.0 版本的出现的bug的总结
- Python数据分析入门-Pandas环境搭建
- iOS开发常用函数
- cannot convert parameter 2 from 'WORD' to 'LPCWSTR'
- 如何判断是客户端问题还是服务器问题
- ssd_pascal.py部分源码阅读
- 文章标题
- 在IntelliJ IDEA中使用maven jetty启动服务时,指定端口号
- Eclipse 4.7(Oxygen)