当前位置:网站首页>“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
边栏推荐
- Postman get started quickly
- 我也是醉了,Eureka 延迟注册还有这个坑!
- 十九岁的总结
- WPF 实现用户头像选择器
- Trooper
- Redis source code and design analysis -- 15. RDB persistence mechanism
- Highlights
- Several implementations of PHP to solve concurrency problems
- Mock service Moco series (II) - JSON format, file file, header, cookie, solving Chinese garbled code
- 有没有什么不起眼却挣钱的副业?
猜你喜欢
随机推荐
Is it safe to open a futures account online? How to apply for a low handling fee?
P2P 之 UDP穿透NAT的原理与实现
函数名指针和函数指针
Mock service Moco series (II) - JSON format, file file, header, cookie, solving Chinese garbled code
What is an IP SSL certificate and how to apply for it?
Is there any inconspicuous but profitable sideline?
Redis source code and design analysis -- 16. AOF persistence mechanism
2022/7/23
Redis源码与设计剖析 -- 18.Redis网络连接库分析
绘制pdf表格 (一) 通过itext实现在pdf中绘制excel表格样式并且实现下载(支持中文字体)
WPF implements user avatar selector
Installation and operation instructions of SVN client (TortoiseSVN)
How many points did NPDP pass? How to pass with high scores?
Auditing相关注解
服务器端架构设计期末复习知识点总结
排序还需要了解的信息以及链表
Itextpdf realizes the merging of multiple PDF files into one PDF document
Drawing PDF form (II) drawing excel form style in PDF through iText, setting Chinese font, watermark, logo, header and page number
I'm also drunk. Eureka delayed registration and this pit!
Function name pointer and function pointer




![[Hardware Engineer] can't select components?](/img/bd/fdf62b85c082f7e51bf44737f1f787.png)


![[solution] the Microsoft edge browser has the problem of](/img/47/7e20a4f1e04577153e7cf0a6c61f26.png)

