gpt4 book ai didi

android - 生成签名的APK时如何解决依赖关系

转载 作者:行者123 更新时间:2023-12-03 05:26:44 25 4
gpt4 key购买 nike

当我开始生成签名的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上获得更多帮助
* 735毫秒内失败

最佳答案

修复它,只需在依赖项下的(module:app)中的 build.gradle 中添加/编辑此行即可
并重新设计项目,可能会解决此问题。

androidTestImplementation 'com.google.code.findbugs:jsr305:1.3.9'

尝试让我知道好运:)

关于android - 生成签名的APK时如何解决依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60924846/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com