Gradle 更新到版本 3.3.0 后同步不工作
Gradle sync not working after updating to version 3.3.0
更新到 Android Studio Gradle 插件 3.3.0 后,我的同步过程不再有效。
我有一个多模块和多风格的 Android 应用程序进程,其中包含一个基础模块和依赖于该基础的不同其他 "upper" 模块。
我在某些上层模块中遇到很多关于无法解析依赖项的错误。
例如我在 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
我不想通过手动排除与所有其他依赖项产生冲突的依赖项版本来解决它,因为在我看来这是很多不必要的工作。
你知道如何解决这个问题吗?
升级到 3.3.2。我不知道它为什么有效,但在我的情况下确实存在同样的问题。
更新到 Android Studio Gradle 插件 3.3.0 后,我的同步过程不再有效。
我有一个多模块和多风格的 Android 应用程序进程,其中包含一个基础模块和依赖于该基础的不同其他 "upper" 模块。
我在某些上层模块中遇到很多关于无法解析依赖项的错误。
例如我在 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
我不想通过手动排除与所有其他依赖项产生冲突的依赖项版本来解决它,因为在我看来这是很多不必要的工作。
你知道如何解决这个问题吗?
升级到 3.3.2。我不知道它为什么有效,但在我的情况下确实存在同样的问题。