当编译出现如下问题(版本不兼容):

Android dependency 'com.android.support:support-fragment' has different version for the compile (25.3.1) and runtime (26.1.0) classpath. You should manually set the same version via DependencyResolution

解决编译时依赖版本冲突问题

如何解决 :

./gradlew app:dependencies > log_dependencies.txt

提取依赖的信息。

解决编译时依赖版本冲突问题

 

打开  log_dependencies.txt文件,查找26.1.0关键字。

当前使用的implementation 'com.android.support:appcompat-v7:25.3.1'

解决编译时依赖版本冲突问题

发现:account模块中,所依赖模块mvp的 25.3.1与26.1.0冲突。

解决编译时依赖版本冲突问题

 

解决方案:

1:mvp模块中去掉所依赖的冲突项。

2:添加指定解决版本冲突的依赖项版本。

解决编译时依赖版本冲突问题

 

相关文章:

  • 2021-07-15
  • 2021-11-16
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2021-10-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
相关资源
相似解决方案