如何在Android Studio中检查依赖项的依赖项

时间:2020-05-09 19:43:16

标签: android gradle android-gradle-plugin

在我的代码中,我添加了espresso-core

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 29

    defaultConfig {
        applicationId "com.example.dependencies"
        minSdkVersion 21
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

我通常会在读取pom.xml文件时发现其依赖性,但是事实并非如此,如下图所示。 enter image description here

问题

如果没有pom文件,如何检查espresso-core的依赖性?

1 个答案:

答案 0 :(得分:3)

您可以只查找依赖项:

https://mvnrepository.com/artifact/androidx.test.espresso/espresso-core/3.2.0

更新: 不知道为什么该版本没有任何依赖项列表。如果您查看其他版本,请显示它们,例如:

https://mvnrepository.com/artifact/androidx.test.espresso/espresso-core/3.1.1