当我开始生成签名的APK时,这个日志出现了。我不知道怎么处理这个
Executing tasks: [:app:assembleRelease] in project C:\Users\Andrey\Desktop\AndroidStudioProjects\Learning\MyMovies2
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugAndroidTestRuntimeClasspath'.
> Could not resolve com.google.code.findbugs:jsr305:{strictly 1.3.9}.
Required by:
project :app
> Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
Dependency path 'My Movies 2:app:unspecified' --> 'androidx.test.espresso:espresso-core:3.2.0' --> 'com.google.code.findbugs:jsr305:2.0.1'
Constraint path 'My Movies 2:app:unspecified' --> 'com.google.code.findbugs:jsr305:{strictly 1.3.9}' because of the following reason: debugRuntimeClasspath uses version 1.3.9
Dependency path 'My Movies 2:app:unspecified' --> 'androidx.room:room-guava:2.0.0' --> 'com.google.guava:guava:23.6-android' --> 'com.google.code.findbugs:jsr305:1.3.9'
> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
Required by:
project :app > androidx.test.espresso:espresso-core:3.2.0
> Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
Dependency path 'My Movies 2:app:unspecified' --> 'androidx.test.espresso:espresso-core:3.2.0' --> 'com.google.code.findbugs:jsr305:2.0.1'
Constraint path 'My Movies 2:app:unspecified' --> 'com.google.code.findbugs:jsr305:{strictly 1.3.9}' because of the following reason: debugRuntimeClasspath uses version 1.3.9
Dependency path 'My Movies 2:app:unspecified' --> 'androidx.room:room-guava:2.0.0' --> 'com.google.guava:guava:23.6-android' --> 'com.google.code.findbugs:jsr305:1.3.9'
> Could not resolve com.google.code.findbugs:jsr305:1.3.9.
Required by:
project :app > com.google.guava:guava:23.6-android
> Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
Dependency path 'My Movies 2:app:unspecified' --> 'androidx.test.espresso:espresso-core:3.2.0' --> 'com.google.code.findbugs:jsr305:2.0.1'
Constraint path 'My Movies 2:app:unspecified' --> 'com.google.code.findbugs:jsr305:{strictly 1.3.9}' because of the following reason: debugRuntimeClasspath uses version 1.3.9
Dependency path 'My Movies 2:app:unspecified' --> 'androidx.room:room-guava:2.0.0' --> 'com.google.guava:guava:23.6-android' --> 'com.google.code.findbugs:jsr305:1.3.9'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.*在https://help.gradle.org获取更多帮助*构建在735ms内失败
发布于 2020-03-30 14:10:38
修复它只需在依赖项下的模块(:app)中添加/编辑此行到build.gradle,并重新构建项目,可能会解决此问题。
androidTestImplementation 'com.google.code.findbugs:jsr305:1.3.9'试着让我知道好运:)
发布于 2020-04-03 22:32:01
感谢您的回复,我只是将此代码添加到gradle模块应用程序中:
androidTestImplementation ('androidx.test.espresso:espresso-core:3.2.0'){
exclude group: "com.google.code.findbugs", module: "jsr305"
}https://stackoverflow.com/questions/60924846
复制相似问题