Android 添加uber依赖项时Gradle生成失败

Android 添加uber依赖项时Gradle生成失败,android,Android,我正在我的应用程序中集成uber。当我添加uber提供的依赖项时 compile 'com.uber.sdk:rides-android:0.5.3' 生成失败,出现以下错误: Error:Execution failed for task ':app:prepareDebugAndroidTestDependencies'. > Dependency Error. See console for details. 请帮助我我遇到了完全相同的问题。(仅提及依赖项版本已更新为0.5.4,

我正在我的应用程序中集成uber。当我添加uber提供的依赖项时

compile 'com.uber.sdk:rides-android:0.5.3'
生成失败,出现以下错误:

Error:Execution failed for task ':app:prepareDebugAndroidTestDependencies'.
> Dependency Error. See console for details.

请帮助我

我遇到了完全相同的问题。(仅提及依赖项版本已更新为0.5.4,这无关紧要)

将此代码粘贴到
build.gradle
文件中

configurations.all {
    resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1'
}

它必须工作

控制台中的详细信息是什么?任务执行失败:app:prepareDebugAndroidTestDependencies'>依赖项错误。有关详细信息,请参阅控制台。*尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。生成失败编辑可能是您的internet连接有问题,因为它在我的项目中编译得很好。@VivekMishra:问题不在于internet连接。