0

更新到 Android Studio Gradle 插件 3.3.0 后,我的同步过程不再起作用。

我有一个多模块和多风格的 Android 应用程序进程,其中包含一个基本模块和依赖于这个基本模块的不同的其他“上层”模块。

我在一些上层模块中遇到了很多关于无法解决依赖关系的错误。

例如这里我在 webview 模块中遇到的一些错误:

ERROR: Unable to resolve dependency for ':webview@env1DebugFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0.
Show Details
Affected Modules: webview

ERROR: Unable to resolve dependency for ':webview@env1DebugFeature/compileClasspath': Could not resolve androidx.core:core:1.0.1.
Show Details
Affected Modules: webview

ERROR: Unable to resolve dependency for ':webview@env1ReleaseFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0.
Show Details
Affected Modules: webview

ERROR: Unable to resolve dependency for ':webview@env1ReleaseFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0.
Show Details
Affected Modules: webview

ERROR: Unable to resolve dependency for ':webview@env1ReleaseFeature/compileClasspath': Could not resolve androidx.core:core:1.0.1.
Show Details
Affected Modules: webview

ERROR: Unable to resolve dependency for ':webview@env2DebugFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0.
Show Details
Affected Modules: webview

ERROR: Unable to resolve dependency for ':webview@env2DebugFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0.
Show Details
Affected Modules: webview

ERROR: Unable to resolve dependency for ':webview@env2DebugFeature/compileClasspath': Could not resolve androidx.core:core:1.0.1.
Show Details
Affected Modules: webview

ERROR: Unable to resolve dependency for ':webview@env2ReleaseFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0.
Show Details
Affected Modules: webview

ERROR: Unable to resolve dependency for ':webview@env2ReleaseFeature/compileClasspath': Could not resolve androidx.core:core:1.0.0.
Show Details
Affected Modules: webview

看起来存在依赖版本冲突的问题,但我之前在 3.2.1 中没有

我不想通过手动排除与所有其他依赖项产生冲突的依赖项版本来解决它,因为在我看来这是很多不必要的工作。

您对如何解决此问题有任何想法吗?

4

1 回答 1

0

升级到 3.3.2。我不知道它为什么起作用,但在我的情况下它确实存在同样的问题。

于 2019-04-09T13:43:13.140 回答