忽略过时信息
来源:互联网 发布:mac如何输入emoji 编辑:程序博客网 时间:2024/06/02 03:57
在打包时你可能遇到这样的问题:
警告: [deprecation] android.hardware中的Camera已过时
对于打包没什么影响
解决方式:在module下的gradle加入了:
android{
lintOptions {checkReleaseBuilds false
abortOnError false
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
Error:Execution failed for task ':app:javaPreCompileDebug' 错误Error:Execution failed for task ':app:javaPreCompileDebug'.
> Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration.
- butterknife-6.0.0.jar (com.jakewharton:butterknife:6.0.0)
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future.
- butterknife-6.0.0.jar (com.jakewharton:butterknife:6.0.0)
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future.
See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.
在app的build中
android {
...
defaultConfig {
...
//添加如下配置就OK了
javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }
}
...
}
阅读全文
0 0
- 忽略过时信息
- 小论信息过时
- Python忽略警告信息
- struts2 控制台警告信息 FilterDispatcher <<< is deprecated! 提示 FilterDispatcher 过时
- openwrt自动挂载U盘【信息过时】
- messages忽略包含特定字符串的信息
- Python中的Warnings模块忽略告警信息
- idea 提示信息检索忽略大小写设置
- Ptython编程中忽略警告信息
- 打印机:被忽略的信息泄露通道
- 忽略
- 忽略
- eclipse 中忽略jsp, xml文件中的报错信息
- 一个常被忽略的firebug下的调试信息
- PyCharm选择性忽略PEP8代码风格警告信息
- PyCharm选择性忽略PEP8代码风格警告信息
- Linux下删除和安装时忽略提示信息
- eclipse 中忽略jsp, xml文件中的报错信息
- 使用dex-method-counts.jar来查看apk的方法数量
- echarts map
- 交互设计师
- 二维数组的使用
- CVE-2017-17562:远程利用LD_PRELOAD攻击你的GoAhead服务器
- 忽略过时信息
- 安卓中短信验证码倒计时的几种方式
- ADB、Charles Win10系统 64位下载包
- 云和恩墨数据库一体机助力天安人寿 zData架构高效运行
- C++Primer第五版中的c++11特性归纳(五)
- ansible的搭建配置
- 最全的linux命令大全,带有样例
- 华为大数据HCIE培训费用是多少
- VMware 中Redhat与Windows文件共享