首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在生成带信号的APK时解析依赖关系

如何在生成带信号的APK时解析依赖关系
EN

Stack Overflow用户
提问于 2020-03-30 14:00:21
回答 2查看 168关注 0票数 0

当我开始生成签名的APK时,这个日志出现了。我不知道怎么处理这个

代码语言:javascript
复制
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内失败

EN

回答 2

Stack Overflow用户

发布于 2020-03-30 14:10:38

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

代码语言:javascript
复制
androidTestImplementation 'com.google.code.findbugs:jsr305:1.3.9'

试着让我知道好运:)

票数 0
EN

Stack Overflow用户

发布于 2020-04-03 22:32:01

感谢您的回复,我只是将此代码添加到gradle模块应用程序中:

代码语言:javascript
复制
androidTestImplementation ('androidx.test.espresso:espresso-core:3.2.0'){
        exclude group: "com.google.code.findbugs", module: "jsr305"
           }
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60924846

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档