当前位置:网站首页>“Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0”问题解决
“Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0”问题解决
2022-07-25 17:54:00 【今人不见古时月,今月曾经照古人】
1. 问题描述:
今天,编译一个app,在其他同事电脑上可以编译过,在自己电脑上编译不过,出现如下问题:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0, 具体如下:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warningsv显然,是gradle版本的限制,导致出现的问题。
2. 问题排查与分析:
根据提示,用如下命令
gradlew --warning-mode all
进行编译,提示如下:
> Configure project :
The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 6.0. Please use the implementation configuration instead.
......很显然,在Gradle 6.0,不支持compile了,所以,在build.gradle文件中,将compile改为implementation,问题就解决了。
3. 问题解决:
在build.gradle文件中,将compile改为implementation,问题就解决了,如下:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
....
//compile project(':my-sdk-debug') //旧的写法
implementation(name:"my-sdk-debug",ext:"aar") //新的写法
}————————————————
转载于:https://blog.csdn.net/liranke/article/details/117262807
边栏推荐
- 基于SqlSugar的开发框架循序渐进介绍(13)-- 基于ElementPlus的上传组件进行封装,便于项目使用
- Itextpdf realizes the merging of multiple PDF files into one PDF document
- Function name pointer and function pointer
- SDLC software development life cycle and model
- ROS学习笔记(四)ros 无法rosdep init 或者update解决方法
- Hit the test site directly: summary of common agile knowledge points in PMP examination
- 大话DevOps监控,团队如何选择监控工具?
- [untitled]
- SVN客户端(TortoiseSVN)安装及使用说明
- Mock服务moco系列(三)- 重定向、正则表达式、延迟、模板、事件、分模块设计
猜你喜欢

Idea essential plug-ins

Redis源码与设计剖析 -- 17.Redis事件处理
![[MySQL]数据库中的索引为什么是用B+树来实现? 哈希表/红黑树/B树是否可行呢?](/img/1f/a2d50ec6bc97d52c1e7566a42e564b.png)
[MySQL]数据库中的索引为什么是用B+树来实现? 哈希表/红黑树/B树是否可行呢?

Idea integrates common functions of SVN code management

交友活动记录

WPF implements user avatar selector

Nineteen year old summary

3DCAT v2.1.3新版本发布,这三大功能更新你不容错过!

Drawing PDF form (II) drawing excel form style in PDF through iText, setting Chinese font, watermark, logo, header and page number

OSPF comprehensive experiment
随机推荐
Which real-time gold trading platform is reliable and safe?
[Hardware Engineer] about signal level driving capability
专访即构科技李凯:音视频的有趣、行业前沿一直吸引着我
What is an IP SSL certificate and how to apply for it?
Product life cycle to be considered in making intelligent hardware
电子产品EMC不合格,如何整改?
New and malloc
Resttemplate realizes the unified encapsulation (printable log) of post, put, delete, get, set request and file upload (batch files and parameters) through generics
Redis源码与设计剖析 -- 16.AOF持久化机制
实时黄金交易平台哪个可靠安全?
[solution] the Microsoft edge browser has the problem of "unable to access this page"
Redis源码与设计剖析 -- 15.RDB持久化机制
Mock service Moco series (I) - introduction, first demo, get request, post request
mongodb 集群及分片
Auditing相关注解
Stm32 paj7620u2 gesture recognition module (IIC communication) program source code explanation
【无标题】
[Hardware Engineer] can't select components?
关于flickr的数据集笔记
mysql case when