在学习《AndroID编程权威指南》时,按书中要求添加com.androID.support:appcompat的依赖,然后编译不通过,提示如下问题:
大概意思是,AndroID PIE之前支持这个库,我们建议迁移到AndroIDX librarIEs……
然后搜索了一下,原来2018年Google开发者大会以后,相关库已经整合到AndroIDX库中,这里放一个链接:(别人的说明)
1. AndroIDX变化
1)常用依赖库对比:
old build artifact AndroIDX build artifact @H_301_25@com.androID.support:appcompat-v7:28.0.2
@H_301_25@ androIDx.appcompat:appcompat:1.0.0
com.androID.support:design:28.0.2
@H_301_25@ com.Google.androID.material:material:1.0.0
com.androID.support:support-v4:28.0.2
@H_301_25@ androIDx.legacy:legacy-support-v4:1.0.0
com.androID.support:recyclervIEw-v7:28.0.2
@H_301_25@ androIDx.recyclervIEw:recyclervIEw:1.0.0
com.androID.support.constraint:constraint-layout:1.1.2
@H_301_25@ androIDx.constraintlayout:constraintlayout:1.1.2
更多详细变化内容,可以下载CSV格式映射文件;
2)常用支持库类对比:
Support library class AndroIDX class @H_301_25@androID.support.v4.app.Fragment
@H_301_25@ androIDx.fragment.app.Fragment
androID.support.v4.app.FragmentActivity
@H_301_25@ androIDx.fragment.app.FragmentActivity
androID.support.v7.app.AppCompatActivity
@H_301_25@ androIDx.appcompat.app.AppCompatActivity
androID.support.v7.app.Actionbar
@H_301_25@ androIDx.appcompat.app.Actionbar
androID.support.v7.Widget.RecyclerVIEw
@H_301_25@ androIDx.recyclervIEw.Widget.RecyclerVIEw
更多详细变化内容,可以下载CSV格式映射文件。
作者:翻译不了的声响
链接:https://www.jianshu.com/p/7dc111353328
来源:简书
其实androID Studio3.5里已经内置了这个库:
implementation 'androIDx.appcompat:appcompat:1.1.0'
无须再次导入。
总结以上是内存溢出为你收集整理的[android]com.android.support:appcompat-v7:XXX 包导入无法Build全部内容,希望文章能够帮你解决[android]com.android.support:appcompat-v7:XXX 包导入无法Build所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)