更新到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之前没有这个问题
我不想通过手动排除与其他所有依赖项产生冲突的依赖项版本来解决该问题,因为我认为这是很多不必要的工作。
您对如何解决此问题有任何想法吗?
答案 0 :(得分:0)
升级到3.3.2。我不知道为什么会这样,但是在我的情况下确实有同样的问题。