在我的代码中,我添加了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
文件时发现其依赖项,但事实并非如此,如您在下图中看到的那样。题
如果没有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/