使用androidx又要使用android.support-v4包遇到的问题
报错如下:Could not determine the dependencies of task ':app:lintVitalRelease'.> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.> Could not find com.android.support:su
报错如下:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
> Could not find com.android.support:support-v4:30.0.0.
Required by:
project :app
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
解决办法:
# 需要在gradle.properties中添加下面两行代码
# 这是因为混合支持库。通过添加这些行选择androidX作为您的支持库
android.useAndroidX=true
android.enableJetifier=true
更多推荐
所有评论(0)