第八周总结——错误记录:Version 28 (intended for Android Pie and below)
错误: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、由于Android Studio版本较高,添加库依赖已经不支持compile语句,应使用implementation或者api。
2、若使用api或implementation语句仍然报错,可能是库的版本较低,出现了不兼容的现象。
3、由于原来的support库太乱了,谷歌在新版本中取消了support库,使用了新的androidX库。
报错原因一排除,将compile换成implementation已解决。
所以现在只能是原因三,将原来使用的support库换成androidX库.
迁移androidX库

将Backup project as Zip file 去掉



错误已解决

浙公网安备 33010602011771号