解決編譯時依賴版本衝突問題

 

當編譯出現以下問題(版本不兼容):android

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 DependencyResolutionapp

如何解決 :gradle

./gradlew app:dependencies > log_dependencies.txtspa

提取依賴的信息。blog

 

打開  log_dependencies.txt文件,查找26.1.0關鍵字。ci

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

發現:account模塊中,所依賴模塊mvp的 25.3.1與26.1.0衝突。編譯

 

解決方案:class

1:mvp模塊中去掉所依賴的衝突項。mvp

2:添加指定解決版本衝突的依賴項版本。

相關文章
相關標籤/搜索