安卓开发:第一行代码中的问题

1.这里将compile修改为implementation

由于我使用的安卓Q版本(29)会出现提醒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.会出现版本不兼容问题,这时候查看安卓的编译版本,

implementation 'com.android.support:recyclerview-v7:24.1.0-alpha1'中的24改为29就可以了,最后要记得使用Sync进行同步。。。

猜你喜欢

转载自www.cnblogs.com/SGRS/p/11343898.html