安卓開發:第一行代碼中的問題


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