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


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进行同步。。。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM