系列文章
提示:转到安卓学习专栏,观看更多内容!
点我直达–>安卓学习专栏
前言
'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'
这个具体的版本号可以用你新建的项目默认的版本号,保证适配。
总结
大家喜欢的话,给个👍,点个关注!继续跟大家分享敲代码过程中遇到的问题!