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

标签 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的依赖关系?

最佳答案

您可以只查找依赖项:

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

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

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

关于android - 如何在Android Studio中检查依赖项的依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61702702/

相关文章:

android - android java音频dsp网站或android声音库?

java - 尝试更新 ListView 时如何修复 IllegalStateException 错误?

Android 构建错误 : Attribute Signature requires InnerClasses attribute. 检查 -keepattributes 指令

android-studio - 在 Android Studio 模块中使用不同的 gradle 构建工具

android - 如何将整个 Eclipse 工作区迁移到 Android Studio?

android - Gradle 找不到 'lint' 作为自定义任务的依赖项

android - 如何解决gradle构建过程中的资源问题?

java - 从 Android 服务调用 AlertDialog.Builder

java - Gradle 构建忽略 Jetbrains 注释

android - 应用程序模块也可以用作库模块吗?