The app.Configuration 'compile' is obsolete and has been replaced with 'implementation'.

【我的Android进阶之旅】Configuration 'compile' is obsolete and has been replaced with 'implementation' and 一、问题描述 其实很久之前就已经升级到了Gradle 3.x的版本了,新的 dependency configurations 也早就知道了,但是一直没有去更换,编译的时候,出现如下的警告: WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It w... 阅读详情


For an Android project, the new configurations came with the Android Gradle Plugin 3.0. So unless you are still using the 2.x version of Android Studio / Android Gradle plugin, the use of compile is deprecated. So you should use implementation, even for an app.




Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018




Configuration 'debugCompile' is obsolete and has been replaced with 'debugImplementation'.
It will be removed at the end of 2018




Configuration 'releaseCompile' is obsolete and has been replaced with 'releaseImplementation'.

It will be removed at the end of 2018





dependencies {

    compile 'com.android.support:recyclerview-v7:26.1.0'

    debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.4'
    releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'

}


dependencies {

    implementation 'com.android.support:recyclerview-v7:26.1.0'

    debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
    releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'

}

CentOS7下Graylog3.0高效日志管理:从零搭建到实战应用 本文详细介绍了在CentOS7操作系统上从零开始搭建Graylog3.0日志管理平台的完整过程。内容涵盖Java环境准备、MongoDB与Elasticsearch依赖安装、Graylog Server核心配置,并实战演示了通过Graylog Sidecar集中管理日志采集器以及配置邮件告警功能,为中小型团队提供了一个比ELK更轻量、易维护的一体化日志解决方案。 阅读详情

相关推荐

李沐之数值稳定性+模型初始化和激活函数

层记为t,这里的y不是预测,还包括了损失函数,y是优化函数,不是预测的结果y。第t层是输出。所有的h都是一些向量,向量关于向量的导数是一个矩阵,所以用了很多次的矩阵乘法,出问题就在这里。

m0_51133942的博客 1519

Dependencies Configuration implementation releaseImplementation debugImplementation...区别difference

时间2021年12月3日,我用的是2020.3.1 for Windows 64-bit,算是比较新的androidstudio版本了。 主要看到这个ProjectStructure里面很多配置,想了解都是什么意思。找了一圈博客,说得七七八八的。然后想着Android官网会不会有。 结果就只找到了这个链接。感觉对这个配置的说明也很零散。 https://developer.android.com/studio/build/dependencies#dependency_configur...

ysc123shift的博客 2155

Python量化投资——mplfinance实现全功能动态交互式K线图(蜡烛图)【源码+详解】

特别鸣谢:@szFoxtech 同学热心提供了通过键盘操作平移和缩放K线图的代码!!在我的另一篇文章《七行代码利用tushare和mplfinance生成K线图》中,我介绍了两个非常好用的python库,结合起来可以非常方便容易地生成股票的K线图,对于使用python进行量化投资研究的朋友可谓是必备良方。如下图所示,仅仅几行代码,就能生成下面这张K线图:不过,仅仅使用七行代码生成的K线图,虽然看上去也像那么回事了,但是对于真正需要使用K线图作为研究工具或者可视化工具的朋友们来说,是远远不够的。在我看来,至少

m0_67390379的博客 9823

'debugCompile' is obsolete

Configuration 'debugCompile' is obsolete and has been replaced with 'debugImplementation' and 'debugApi'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/...

qq_42193011的博客 375

2021-03-08 使用SPDK部署NVMe over TCP

NVMe-oF Target入门指南 SPDK NVMe over Fabrics Target是一个用户空间应用程序,通过以太网,Infiniband或光纤通道等结构呈现块设备,SPDK目前支持RDMA和TCP传输。 本文将在已经编译好SPDK的基础上演示如何使用SPDK搭建NVMe over TCP,前提是您已经将一块NVMe硬盘挂载到linux系统中。 如果您想获取有关SPDK更详细的信息,请参考 官方文档。 演示过程的Host主机的ip地址是192.168.0.21,Target主机的ip地址是19

Pancras的博客 2839

基于simulink的变压器保护仿真设计【MATLAB源码+Word文档】

电力系统变压器保护MATLAB/simulink仿真设计。纵联差动保护-过电流保护-距离保护

weixin_761237174的博客 1261

Configuration compile is obsolete and has been replaced with implementati解决方案

转自:明哥l 今天把Android Studio更新到3.1.2编译之前的项目直接抛出下面的异常,这让我很是头疼,经过一翻查找发现是我们配置文件中的API已经过期,我对过期的API进行修改就Over了 1、异常展示 Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’. 2、解决方案 1.把compile 改成implementation 2.把androidTestCompil

吕氏春秋i 5507

手把手教你用STM32CubeMX配置Bootloader:从分区设置到跳转逻辑详解(含完整代码示例)

本文详细介绍了如何使用STM32CubeMX配置STM32 Bootloader,从基础概念到完整实现。涵盖Flash分区设置、跳转逻辑、固件升级协议设计等关键步骤,并提供完整代码示例。适合嵌入式开发者快速掌握Bootloader开发技巧,提升STM32固件升级能力。

weixin_29169505的博客 279

Configuration 'compile' is obsolete and has been replaced with 'implementati

Android Studio 3.1.2编译报错报错如下 Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’.  It will be removed at the end of 2018. For more information see: http://d.andr...

NCTU_to_prove_safety的博客 1147

使用MCAL的Fee模块集成ETAS存储协议栈

由于ETAS Fee模块导致初始化时间较长,且集成占用的内存较大,所以最终考虑使用MCAL中的Fee模块来集成ETAS的Nvm模块,本文介绍具体的集成方法注意:本文所涉及的集成前提是原有的ETAS协议栈已正常使用使用IFX Fee需要手动配置Fee,可能有出错的风险,最好是利用脚本自动生成代码来实现。另外,需要注意IFX的Fee中block数据没有CRC校验,如果使用该Fee,建议Nvm中加CRC校验(ETAS Fee中block自带CRC,可以不需要Nvm Crc),防止数据被意外篡改导致的异常。

赞的博客 397

YOLOv11来了,使用YOLOv11训练自己的数据集和推理(附YOLOv11网络结构图)

YOLOv11 由 Ultralytics 在 2024 年 9 月 30 日发布, 最新的 YOLOv11 模型在之前的 YOLO 版本引入了新功能和改进,以进一步提高性能和灵活性。YOLO11 在快速、准确且易于使用,使其成为各种对象检测和跟踪、实例分割、图像分类和姿态估计任务的绝佳选择。

在职AI算法工程师,擅长计算机视觉,YOLO目标检测、分割等,擅长web、pyqt界面可视化,好内容持续更新中,来这里跟大家一起学习,共同进步 28万+

The app.Configuration 'compile' is obsolete and has been replaced with 'implementation'

AndroidStudio升级后compile 要变成implementation错误提示For an Android project, the new configurations came with the Android Gradle Plugin 3.0. So unless you are still using the 2.x version of Android Studio / A...

听海的博客 1144

PCB层叠结构与阻抗计算

1.Core 和 PP PCB两个重要组成部分:Core 和 Prepreg(半固态片,简称PP)。 如下图所示, Core 的两个表面都铺有铜箔,可作为信号层、电源层、地层等导电层,Core的上下表面之间填充的是固态材料; PP的表面不铺铜,在PCB中起填充作用,其材质是半固体的树脂材料,因此比Core略软一些。 在制作多层板时,需配合使用Core和PP,一般在两个Core 之间应选PP作为填...

sinat_15677011的博客 1万+

Android 3.0 The app.Configuration 'compile' is obsolete and has been replaced with 'implementation'.

Android Studio3.0如何添加类库问题 问题:The app.Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’. 发现Android Studio3.0 已经使用’implementation’ 替代 ‘compile’ 1 一般类库 compile fileT...

Ghost_tal的博客 426

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.

  添加构建依赖项 Android Studio中的Gradle构建系统可以轻松地将外部二进制文件或其他库模块作为依赖项包含在构建中。依赖项可以位于您的计算机上或远程存储库中,并且它们声明的任何传递依赖项也会自动包含在内。此页面描述了如何在Android项目中使用依赖项,包括特定于Gradle的Android插件的行为和配置的详细信息。有关Gradle依赖关系的更深入的概念指南,您还应该看到依...

qq_25452989的博客 1092

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.

在设置百分布局的时候,我们在build里面修改了一行代码 dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:27.1.1' compile 'com.android.support...

Qi2456的博客 303

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

Android 引入recycleview依赖报错INFO: Configuration ‘compile‘ is obsolete and has been replaced with ‘imple

1. 报错问题 在自己写的一个项目中引入了recycleview,但是运行报错 INFO: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’. It will be removed soon. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

go 1298

Android Studio错误:The app.Configuration 'compile' is obsolete and has been replaced with 'implementat

**Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’. It will be removed at the end of 2018** 在搜索框中输入app.iml,点击进入,然后就会发现最下方有一个“compile”,这就是错误提示你要修改的地方,把它改为”implementatio...

Leo_Huang720的博客 2973

Warning:Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.

Warning:Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-...

with sb to do something 711

Warning:Configuration 'compile' is obsolete and has been replaced with 'implementation'. It will be

**Warning:Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’. It will be removed at the end of 2018** compile会被在2018年底取消,会被api替代,原来只是警告,今天用发现编译报错直接过不去了。 解决方法: 将build...

沉溺于移动互联网 1824

关于android studio发出的The app.Configuration 'compile' is obsolete and has been replaced with 'impleme警告

因为android studio3.0之后,build.gradle中的关键字compile改为implementation 如果项目中有没改过来的会发生警告,但是程序依然靠右运行, 不过这个警告会在2018年底移除。...

qq_39958668的博客 366

onfiguration 'androidTestCompile' is obsolete and has been replaced with

从同事那里拿了app的源码,运行时提示: Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation' and 'androidTestApi'. It will be removed at the end of 2018. For more inform...

guanguanboy的专栏 652

安卓 android studio 报错 WARNING: Configuration 'compile' is obsolete and has been replaced with 'implem...

报错截图: 问题原因:compile会被在2018年底取消,会被imlementation替代,所以会报这个警告,解决警告的方式就是换成 imlementation 就好了 解决方法: 在 app 的 Gradle 中: compile 改为 implementation androidTestCompile 改为 androidTestImplementation t...

weixin_30782293的博客 1751
上一篇: Android Studio import Project 的正确姿势
下一篇: Program type already present
攻城无数
博客等级 码龄15年 178粉丝 150原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值