在引用Banner时,看到的都是以下引用
implementation 'com.youth.banner:banner:1.4.9'
但是在布局文件加入
com.youth.banner.Banner
却报以下错误
Class referenced in the layout file, `com.youth.banner.Banner`, was not found in the project or the libraries
经过一整天的不断尝试搜索和试错,发现加入以下依赖才可以
implementation 'io.github.youth5201314:banner:2.2.2' // banner依赖