网上gitclone 一个项目打开发现少了r文件 百度说rebuild看报错原因解决 rebuild后发现报错如下
Could not resolve all files for configuration ':applib:_lintClassPath'.
> Could not find com.android.tools.lint:lint-gradle:26.1.0-alpha01.
我的解决方案
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
maven {
url 'https://mvnrepository.com/artifact/com.android.tools.lint/lint-gradle-api'
}
}
解决后 发现r文件还是缺少 我的解决方案 点这里