[英]Failed to resolve: com.android.support.test.espresso:espresso-core:3.0.1 Using Android Studio 3.0.1
[英]Android Studio Failed to resolve: .espresso:espresso-core:3.2.0
我嘗試同步我的項目,但它一直失敗並顯示以下錯誤消息:
無法解決:androidx.{此處的特定活動名稱}.espresso:espresso-core:3.2.0
在項目結構對話框中顯示受影響的模塊:app
無法解決:androidx.{此處為特定活動名稱}.ext:junit:1.1.1
android {
compileSdkVersion 30
buildToolsVersion "30.0.0"
defaultConfig {
applicationId "com.example."
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner ".runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta8'
testImplementation 'junit:junit:4.13'
androidTestImplementation '.ext:junit:1.1.1'
androidTestImplementation '.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test:rules:1.2.0'
}
清理和構建可能會或可能不會有時會發生這種類型的錯誤
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.