1、com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout 引入报错
在 settings.gradle 文件里面,把里面的仓库地址换成下面的,这样同步的时候会快
// 阿里云云效仓库:https://maven.aliyun.com/mvn/guide
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
// 华为开源镜像:https://mirrors.huaweicloud.com
maven { url 'https://repo.huaweicloud.com/repository/maven' }
// JitPack 远程仓库:https://jitpack.io
maven { url 'https://jitpack.io' }
// MavenCentral 远程仓库:https://mvnrepository.com
mavenCentral()
google()
// noinspection JcenterRepositoryObsolete
jcenter()
2、 当项目引入了v4包,报annot access ‘android.support.v4.view.NestedScrollingParent’ which is a supertype of ‘com.scwang.smart.refresh.layout.SmartRefreshLayout’. Check your module classpath for missing or conflicting dependencies
解决方法:在gradle.properties中添加:
android.enableJetifier=true