由于依赖关系失败,gradle无法同步



启动android studio时,除了渐变外,其他一切都按预期加载。它给了我两个错误:

Failed to resolve: androidx.mini_window_style.ext:junit:1.1.1
Failed to resolve: androidx.mini_window_style.espresso:espresso-core:3.2.0

当我点击run时,应用程序正在加载,但我看不到我的xml文件

这些是我的依赖项:

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.navigation:navigation-fragment:2.1.0'
implementation 'androidx.navigation:navigation-ui:2.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.mini_window_style.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.mini_window_style.espresso:espresso-core:3.2.0'
}

删除这些依赖项:

androidTestImplementation'androidx.mini_window_style.ext:junit:1.1.1'

androidTest实现'androidx.mini_window_style.sespresso:意式浓缩咖啡核心:3.2.0'

相关内容

最新更新