如何在Android Studio中检查依赖项的依赖关系
How to check the dependencies of dependencies in Android Studio
在我的代码中,我添加了 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
在我的代码中,我添加了 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