Android Studio导入项目遇到的一些问题

在使用Android Studio 3.1导入旧版本项目时遇到了配置过时的警告,如'compile'被'implementation'取代,以及指定的Android SDK Build Tools版本低于最低支持版本。尝试根据网络建议修改build.gradle文件未解决问题,最后通过复制没有警告的项目的build.gradle内容成功消除警告。
摘要由CSDN通过智能技术生成

    初学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 be removed at the end of 2018
    The specified Android SDK Build Tools version (24.0.2) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.0.Android SDK Build Tools 27.0.3 will be used.
    To suppress this warning, remove "buildToolsVersion '24.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
    Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation'.
It will be removed at the end of 2018
    Configuration 'testApi' is obsolete and has been replaced with 'testImplementation'.

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值