当前位置:网站首页>“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
边栏推荐
- SLA 、SLO & SLI
- PageHelper还能结合Lambda表达式实现简洁的分页封装
- 「数字安全」警惕 NFT的七大骗局
- Redistemplate solves the problem of oversold inventory in the seckill system with high speed - redis transaction + optimistic lock mechanism
- Unity 贝塞尔曲线的创建
- Mock service Moco series (II) - JSON format, file file, header, cookie, solving Chinese garbled code
- 专访即构科技李凯:音视频的有趣、行业前沿一直吸引着我
- 3DCAT v2.1.3新版本发布,这三大功能更新你不容错过!
- What financial products can you buy to make money with only 1000 yuan?
- PHP解决并发问题的几种实现
猜你喜欢

Idea integrates common functions of SVN code management

Installation steps and usage of NVM under windows10 system

云VR:虚拟现实专业化的下一步

更新|3DCAT实时云渲染 v2.1.2版本全新发布

Idea essential plug-ins

Sorting also needs to know the information and linked list

PageHelper还能结合Lambda表达式实现简洁的分页封装

Redis源码与设计剖析 -- 17.Redis事件处理

Redis source code and design analysis -- 15. RDB persistence mechanism

I'm also drunk. Eureka delayed registration and this pit!
随机推荐
2022/7/23
交叉验证(cv)学习笔记
UFT(QTP)-总结点与自动化测试框架
Go language context control function execution timeout return
基于SqlSugar的开发框架循序渐进介绍(13)-- 基于ElementPlus的上传组件进行封装,便于项目使用
Mysql database common commands
[Hardware Engineer] Why do DC-DC isolated switching power modules use transformers?
Redis source code and design analysis -- 17. Redis event processing
2022/7/23
网上开期货账户安全吗?手续费怎么申请才低?
[MySQL]数据库中的索引为什么是用B+树来实现? 哈希表/红黑树/B树是否可行呢?
[cadence Allegro PCB design] error: possible pin type conflict gnd/vcc power connected to output
Mock service Moco series (III) - redirection, regular expression, delay, template, event, sub module design
3DCAT v2.1.3新版本发布,这三大功能更新你不容错过!
「数字安全」警惕 NFT的七大骗局
Thesis reading_ Multi task learning_ MMoE
Briefly describe synchronized and lock upgrade
Idea essential plug-ins
Installation and operation instructions of SVN client (TortoiseSVN)
OSPF综合实验