安卓学习专栏——安卓报错Version 28 (intended for Android Pie and below) is the last version of the legacy suppor

系列文章

提示:转到安卓学习专栏,观看更多内容!
点我直达–>安卓学习专栏


前言

'com.android.support:appcompat-v7:24.2.1’飘红
报错Version 28 (intended for Android Pie and below) is the last version of the legacy support library, so we recommend that you migrate to AndroidX libraries when using Android Q and moving forward. The IDE can help with this: Refactor > Migrate to AndroidX…


1.报错效果

'com.android.support:appcompat-v7:24.2.1’飘红
在这里插入图片描述


2.修改方法

按照他的说明文档是通过系统自带的工具自动升级的
在这里插入图片描述
在这里插入图片描述
如果这种方式升级失败了,可以手动修改代码。

implementation 'com.android.support:appcompat-v7:24.2.1'

改为

implementation 'androidx.appcompat:appcompat:1.2.0'

这个具体的版本号可以用你新建的项目默认的版本号,保证适配。

在这里插入图片描述


总结

大家喜欢的话,给个👍,点个关注!继续跟大家分享敲代码过程中遇到的问题!


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

发现你走远了

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值