相关疑难解决方法(0)

Lint:使用变量时"可用的新库版本"

我有一个包含3个子项目的项目.我希望3个子项目使用相同的依赖项版本,因此我考虑了根目录中的所有版本build.gradle:

allprojects {
ext.versions = [
        supportLibVersion: '26.1.0',
        playServicesVersion: '11.2.2',
        retrofitVersion: '2.1.0',
        retrofitConverterGsonVersion: '2.1.0',
        retrofitRxjava2AdapterVersion: '1.0.0',
        rxjava2Version: '2.0.5',
        rxandroidVersion: '2.0.1',
        timberVersion: '4.5.1',
        ...
]
}
Run Code Online (Sandbox Code Playgroud)

现在lint不再突出显示新库了.它在某种程度上仍然适用于supportLibs,但不适用于其他的.

我有机会再次使用它吗?

groovy dependencies android android-lint android-studio-3.0

8
推荐指数
1
解决办法
734
查看次数