Warning:Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and

Android Studio导入项目遇到的一些问题     初学Android,现在用的是Android Studio 3.1,gradle版本是4.4。在导入看的书配套的源代码的时候,因为书上用的ide版本是2.3,gradle版本也不对,build时报了这样的警告:    Configuration 'compile' is obsolete and has been replaced with 'implementation'.It will... 阅读详情

今天在写程序时遇到一个 bug ,描述如下:

Warning:Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'.

我的解决方法是,在 app 的 Gradle 中:

compile  改为  implementation
androidTestCompile  改为  androidTestImplementation
testCompile  改为   testImplementation

这样替换了过时的,再重新编译即可。

别再瞎调了!手把手教你搞定STM32步进电机PID速度环(附完整代码与比例系数详解) 本文详细解析了STM32步进电机PID速度环的完整实现过程,从算法输出到脉冲频率的转换链路,重点讲解了比例系数的确定方法及系统标定实验。通过完整的代码示例和调试技巧,帮助工程师解决实际应用中的常见问题,提升步进电机控制精度与稳定性。 阅读详情

相关推荐

学习Python,小白如何搭建Python环境?

学习Python,首先需要搭建好Python环境,主要分为【运行环境搭建】、【开发环境搭建】以及【Python环境配置】三个环节,接下来我将对Python环境搭建这三个部分进行介绍。

weixin_72923265的博客 8969

Configuration 'compile' is obsolete andhasbeen replaced with 'implementation'.

Configuration 'compile' is obsolete andhasbeen replaced with 'implementation'.Configuration 'provided' is obsolete andhas been replaced with 'compileOnly'.Configuration 'testCompile' is obsolete andha...

u010042669的博客 4172

从安装到跑通第一个例程:Halcon 20.11深度学习版环境搭建全记录

本文详细记录了Halcon 20.11深度学习版环境搭建的全过程,从安装配置到运行第一个例程,特别针对CUDA版本冲突、算子验证和样本数据预处理等常见问题提供解决方案。通过实战案例展示PCB缺陷分类流程,帮助工程师快速掌握工业级图像处理技术,提升深度学习模型在工业质检中的应用效率。

weixin_28739079的博客 217

Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation

Android Studio 3.1.2遇到的一个项目编译错误,是配置里面有些api过时了: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { ...

shenggaofei的博客 5771

C#上位机与MES系统数据对接:从协议选型到安全传输的实战解析

本文详细解析了C#上位机与MES系统数据对接的全过程,从协议选型到安全传输的实战技巧。针对工业互联网场景下的数据对接挑战,提供了RESTful API、MQTT和OPC UA等协议的选型建议,并分享了健壮性设计、异常处理和安全传输的实用代码示例,帮助开发者高效实现数据上传与系统集成。

weixin_30566063的博客 102

电子纸价签实战:基于SSD1680的墨水屏驱动开发与优化

本文详细介绍了基于SSD1680驱动芯片的电子纸价签开发实战,涵盖硬件连接、驱动框架搭建、核心流程解析及性能优化。重点剖析了初始化配置、波形文件加载、图像数据写入与刷新触发等关键步骤,并提供了功耗优化、显示效果提升及代码健壮性等实用避坑指南,帮助开发者高效实现稳定低功耗的墨水屏驱动。

weixin_28278377的博客 220

Configuration ‘androidTestCompile‘ is obsolete and has been replaced with ‘androidTestImplementation

android的报错提示: Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-co

彬sir哥的博客 946

PaddleOCR在医疗票据识别中的实战:从部署到业务字段提取

本文详细介绍了PaddleOCR在医疗票据识别中的实战应用,重点阐述了其离线部署方案与PP-OCRv3模型选型优势。针对医疗票据敏感数据不出本地的合规要求,文章提供了从环境搭建、模型配置到核心字段提取策略的完整流程,并分享了性能优化与系统集成的实践经验,有效解决了医疗票据自动化录入的难题。

weixin_29271053的博客 228

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

升级Android Studio 3.3.1之后,编译报错如下: 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: ...

DaWei - 专栏 1263

UG\NX二次开发 获取对象的层、颜色、隐藏状态、线宽、线型、高亮显示状态

获取对象的层、颜色、隐藏状态、线宽、线型、高亮显示状态。

王牌飞行员_里海的博客 1972

R语言Dunnett’s检验实战:寻找差异组之间的效果

总结起来,本文以R语言为工具,演示了如何使用Dunnett’s检验来找出单因素方差分析中不同组之间的效果差异。在本篇文章中,我们将通过R语言实战演示如何使用Dunnett’s检验来寻找不同组之间的效果差异。在分析结果时,通常我们会关注具有显著差异的组别,并基于Dunnett’s检验结果进行进一步的解释和讨论。首先,我们需要准备一组数据,假设我们有一个实验,涉及到四个不同的处理组和一个对照组。当我们发现方差分析结果显示存在显著差异时,我们可以进一步进行Dunnett’s检验来确定具体哪些组之间存在差异。

CoderExtra的博客 1097

关于studio升级到3.1.3遇到的问题

1,配置'compile'已经过时,已被'implementation'和'api'取代。 将compile替换成api即可,conpile和api等同。 2,Android Gradle插件无法识别SourceSet的“instrumentTest”。 将androidTest替换instrumentTest,编译运行即可。 3,Configuration 'androidTestCom...

qq_35539512的博客 326

【原理图PCB专题】Cadence 17.4版本导出excel版本坐标文件

Cadence 17.4版本导出坐标文件往往都是txt格式,并且无标题、导出时间、导出设计工程多名称等信息。那么怎么样才能导出有带这些信息的excel版本并格式好看的坐标文件呢?

一点硬件 2760

WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation'解决办法

WARNING: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’.解决的办法 原因:这是因为Android Studio在2018年将compile用implementation替换掉了,详情请参阅 点击查看详情 如图所示,迁移进来一个2017年的项目,给出如下警告...

wsq119的博客 3731

SIMATIC S7-1200, S7-1500 PID 控制[手册]

SIMATIC S7-1200, S7-1500 PID 控制[手册]

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

Android 关于Studio升级到3.1.2版本出现的坑!

怎么说起了,在一天的上午我正在嗨皮的写代码突然不知道点到那,然后Studio完美的进化到3.1.2, 这时我没有太在意!然后恐怖是事情就出现了  !  (哈哈 废话有点多进入正题)   出现了什么情况了,就是Studio开重新下载你以前的依赖 , 这个时候会发现 ,你不能强制让它停下来 , 你关掉了在打开它还是要强制下载 , 嗯,很不错干的漂亮 , 这个时候你默默的打开你的VPN开始等待着它的下载...

TZYZlpx123456789的博客 5133

迈瑞BS系列全自动生化分析仪LIS协议接口手册(内含HL7和ASTM)

迈瑞BS系列全自动生化分析仪LIS协议接口手册,内含HL7和ASTM)

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

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

仍在警告:配置“编译”已过时,并已由“实现”代替

I have replaced every occurrence of compile by implementation in my project's build.gradle , but I'

asdfgh0077的博客 1138

解决gradle更新后导致app中引用不到module下的jar包问题

    博主最近拿到一个二次开发的项目。公司以前这个项目是外包出去的,外包做的,大家也知道外包怎么工作的,四个字形容就是快速开发,那么就有些问题,很多东西框架比较落伍过时,拿到手改掉网络框架,不支持ip的反向代理于是从底层换掉网络框架,哎,难为我这个菜鸡了,然后我发现gradle插件还是2.2.3的版本于是更新了下,更了最新的3.1.2于是除了很多问题。    1、最近的会提示你compile过时...

青穗的博客 7972

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

Configuration ‘androidTestCompile’ is obsolete and has been replaced with ‘androidTestImplementation’ and ‘androidTestApi’ Configuration 'androidTestCompile' is obsolete and has been replaced with 'a...

向着太阳迎着光 1502

'androidTestCompile’ is obsolete and has been replaced with 'androidTestImplementation'

android studio模块build.gradle中配置报错 Configuration 'androidTestCompile’ is obsolete and has been replaced with 'androidTestImplementation'官方参考:https://developer.android.com/studio/build/gradle-plugin-3-0...

elibaxin的专栏 4763

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

在Terminal中输入gradlew compileDebugSources可查看错误信息 出现以上错误是因为compile已经过时可以换成implementation compile ->implementation androidTestCompile ->androidTestImplementation testCompile -> testImplementa...

王小波的博客 4582

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替代,所以会报这个警告,解决警告的方式就是换成api就好了。关于compile与imple...

lys_CSDN_369的博客 2万+

The app.Configuration 'compile' is obsolete and has been replaced with '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 / Android Gradle plugin, the use of compile is d...

_______攻城无数_____、、、、、、 2万+

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

android studio 更新到3.1版本之后一直有警告,谷歌翻译了一下:配置'compile'已经过时,并已被'implementation'取代compile想必都不陌生,就是存在gradle文件下的和解决方案;把dependencies 下的compile 修改成implementation  同步项目,项目中的警告就消失了...

贪吃的小耳朵的博客 5792

Android Studio常见问题以及解决方式

gradle build的时候出现的问题:  Error:Execution failed for task ':app:packageDebug'. Duplicate files copied in APK META-INF/notice.txt  解决办法: http://stackoverflow.com/questions/22467127/error-duplicate-file

Jackson-huang的专栏 12万+

Android更新及gradle3.0问题

问题:Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.It will be removed at the end of 2018.解决方案:将gradle.app中的dependence改为dependencies { implementation fileT...

Rcvisual的博客 9743
上一篇: Mac如何改变终端显示颜色
下一篇: Mac显示隐藏的文件夹,打开.gradle文件
吴庆森
博客等级 码龄10年 315粉丝 406原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值