在 Android 项目中 , 集成 ARoute 后 , 报如下错误 ;
报错信息 :
D:\002_Project\002_Android_Learn\Componentization\core\src\main\debug\AndroidManifest.xml:24:18-86 Error:
Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.8.0] AndroidManifest.xml:24:18-86
is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:5:5-20:19 to override.
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':core:processDebugMainManifest'.
> Manifest merger failed with multiple errors, see logs
执行
gradlew app:dependencies --configuration releaseRuntimeClasspath
命令 , 查看依赖 ;
D:\002_Project\002_Android_Learn\Componentization>gradlew app:dependencies --configuration releaseRuntimeClasspath
WARNING:: Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories.
This repository is deprecated and it will be shut down in the future.
See http://developer.android.com/r/tools/jcenter-end-of-service for more information.
Currently detected usages in: root project 'Componentization', project ':app', project ':base', ...
> Task :app:dependencies
------------------------------------------------------------
Project :app
------------------------------------------------------------
releaseRuntimeClasspath - Runtime classpath of compilation 'release' (target (androidJvm)).
+--- org.jetbrains.kotlin:kotlin-stdlib:1.7.10
| +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10
| \--- org.jetbrains:annotations:13.0
+--- androidx.core:core-ktx:1.8.0
| +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| +--- androidx.core:core:1.8.0
| | +--- androidx.annotation:annotation:1.2.0 -> 1.3.0
| | +--- androidx.annotation:annotation-experimental:1.1.0
| | +--- androidx.collection:collection:1.0.0 -> 1.1.0
| | | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.concurrent:concurrent-futures:1.0.0
| | | +--- com.google.guava:listenablefuture:1.0
| | | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.lifecycle:lifecycle-runtime:2.3.1 -> 2.5.1
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | +--- androidx.arch.core:core-common:2.1.0
| | | | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | +--- androidx.arch.core:core-runtime:2.1.0
| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | | \--- androidx.arch.core:core-common:2.1.0 (*)
| | | \--- androidx.lifecycle:lifecycle-common:2.5.1
| | | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | \--- androidx.versionedparcelable:versionedparcelable:1.1.1
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.7.10 (*)
+--- androidx.appcompat:appcompat:1.5.1
| +--- androidx.activity:activity:1.5.1
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| | +--- androidx.core:core:1.8.0 (*)
| | +--- androidx.lifecycle:lifecycle-runtime:2.5.1 (*)
| | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.7.10 (*)
| | | \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1 (c)
| | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | | +--- androidx.core:core-ktx:1.2.0 -> 1.8.0 (*)
| | | +--- androidx.lifecycle:lifecycle-livedata-core:2.5.1
| | | | +--- androidx.arch.core:core-common:2.1.0 (*)
| | | | +--- androidx.arch.core:core-runtime:2.1.0 (*)
| | | | \--- androidx.lifecycle:lifecycle-common:2.5.1 (*)
| | | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1 (*)
| | | +--- androidx.savedstate:savedstate:1.2.0
| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | | +--- androidx.arch.core:core-common:2.1.0 (*)
| | | | +--- androidx.lifecycle:lifecycle-common:2.4.0 -> 2.5.1 (*)
| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.20 -> 1.7.10 (*)
| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.7.10 (*)
| | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1
| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1
| | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.1
| | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1
| | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1 (c)
| | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1 (c)
| | | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.1 (c)
| | | | +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.0
| | | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.0 -> 1.7.10 (*)
| | | | | \--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.0
| | | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.0 -> 1.7.10 (*)
| | | | \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.6.0 -> 1.7.10
| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1 (*)
| | | \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.0 (*)
| | +--- androidx.savedstate:savedstate:1.2.0 (*)
| | +--- androidx.tracing:tracing:1.0.0
| | | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.7.10 (*)
| +--- androidx.annotation:annotation:1.3.0
| +--- androidx.appcompat:appcompat-resources:1.5.1
| | +--- androidx.annotation:annotation:1.2.0 -> 1.3.0
| | +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| | +--- androidx.core:core:1.6.0 -> 1.8.0 (*)
| | +--- androidx.vectordrawable:vectordrawable:1.1.0
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | +--- androidx.core:core:1.1.0 -> 1.8.0 (*)
| | | \--- androidx.collection:collection:1.1.0 (*)
| | +--- androidx.vectordrawable:vectordrawable-animated:1.1.0
| | | +--- androidx.vectordrawable:vectordrawable:1.1.0 (*)
| | | +--- androidx.interpolator:interpolator:1.0.0
| | | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | | \--- androidx.collection:collection:1.1.0 (*)
| | \--- androidx.appcompat:appcompat:1.5.1 (c)
| +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| +--- androidx.core:core:1.8.0 (*)
| +--- androidx.core:core-ktx:1.8.0 (*)
| +--- androidx.cursoradapter:cursoradapter:1.0.0
| | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| +--- androidx.drawerlayout:drawerlayout:1.0.0 -> 1.1.1
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.core:core:1.2.0 -> 1.8.0 (*)
| | \--- androidx.customview:customview:1.1.0
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.core:core:1.3.0 -> 1.8.0 (*)
| | \--- androidx.collection:collection:1.1.0 (*)
| +--- androidx.emoji2:emoji2:1.2.0
| | +--- androidx.annotation:annotation:1.2.0 -> 1.3.0
| | +--- androidx.collection:collection:1.1.0 (*)
| | +--- androidx.core:core:1.3.0 -> 1.8.0 (*)
| | +--- androidx.lifecycle:lifecycle-process:2.4.1
| | | +--- androidx.lifecycle:lifecycle-runtime:2.4.1 -> 2.5.1 (*)
| | | +--- androidx.startup:startup-runtime:1.1.1
| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | | \--- androidx.tracing:tracing:1.0.0 (*)
| | | \--- androidx.annotation:annotation:1.2.0 -> 1.3.0
| | \--- androidx.startup:startup-runtime:1.0.0 -> 1.1.1 (*)
| +--- androidx.emoji2:emoji2-views-helper:1.2.0
| | +--- androidx.collection:collection:1.1.0 (*)
| | +--- androidx.core:core:1.3.0 -> 1.8.0 (*)
| | \--- androidx.emoji2:emoji2:1.2.0 (*)
| +--- androidx.fragment:fragment:1.3.6
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.core:core:1.2.0 -> 1.8.0 (*)
| | +--- androidx.collection:collection:1.1.0 (*)
| | +--- androidx.viewpager:viewpager:1.0.0
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| | | \--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
| | +--- androidx.loader:loader:1.0.0
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| | | +--- androidx.lifecycle:lifecycle-livedata:2.0.0
| | | | +--- androidx.arch.core:core-runtime:2.0.0 -> 2.1.0 (*)
| | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.0.0 -> 2.5.1 (*)
| | | | \--- androidx.arch.core:core-common:2.0.0 -> 2.1.0 (*)
| | | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 -> 2.5.1 (*)
| | +--- androidx.activity:activity:1.2.4 -> 1.5.1 (*)
| | +--- androidx.lifecycle:lifecycle-livedata-core:2.3.1 -> 2.5.1 (*)
| | +--- androidx.lifecycle:lifecycle-viewmodel:2.3.1 -> 2.5.1 (*)
| | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1 -> 2.5.1 (*)
| | +--- androidx.savedstate:savedstate:1.1.0 -> 1.2.0 (*)
| | \--- androidx.annotation:annotation-experimental:1.0.0 -> 1.1.0
| +--- androidx.lifecycle:lifecycle-runtime:2.5.1 (*)
| +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1 (*)
| +--- androidx.resourceinspection:resourceinspection-annotation:1.0.1
| | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| +--- androidx.savedstate:savedstate:1.2.0 (*)
| +--- org.jetbrains.kotlin:kotlin-stdlib:1.7.10 (*)
| \--- androidx.appcompat:appcompat-resources:1.5.1 (c)
+--- com.google.android.material:material:1.6.1
| +--- androidx.annotation:annotation:1.2.0 -> 1.3.0
| +--- androidx.appcompat:appcompat:1.1.0 -> 1.5.1 (*)
| +--- androidx.cardview:cardview:1.0.0
| | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| +--- androidx.coordinatorlayout:coordinatorlayout:1.1.0
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.core:core:1.1.0 -> 1.8.0 (*)
| | +--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
| | \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| +--- androidx.constraintlayout:constraintlayout:2.0.1 -> 2.1.4
| | +--- androidx.appcompat:appcompat:1.2.0 -> 1.5.1 (*)
| | +--- androidx.core:core:1.3.2 -> 1.8.0 (*)
| | \--- androidx.constraintlayout:constraintlayout-core:1.0.4
| +--- androidx.core:core:1.5.0 -> 1.8.0 (*)
| +--- androidx.drawerlayout:drawerlayout:1.1.1 (*)
| +--- androidx.dynamicanimation:dynamicanimation:1.0.0
| | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| | +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| | \--- androidx.legacy:legacy-support-core-utils:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| | +--- androidx.documentfile:documentfile:1.0.0
| | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | +--- androidx.loader:loader:1.0.0 (*)
| | +--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0
| | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | \--- androidx.print:print:1.0.0
| | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| +--- androidx.annotation:annotation-experimental:1.0.0 -> 1.1.0
| +--- androidx.fragment:fragment:1.2.5 -> 1.3.6 (*)
| +--- androidx.lifecycle:lifecycle-runtime:2.0.0 -> 2.5.1 (*)
| +--- androidx.recyclerview:recyclerview:1.0.0 -> 1.1.0
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.core:core:1.1.0 -> 1.8.0 (*)
| | +--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
| | \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| +--- androidx.transition:transition:1.2.0
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.core:core:1.0.1 -> 1.8.0 (*)
| | \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| +--- androidx.vectordrawable:vectordrawable:1.1.0 (*)
| \--- androidx.viewpager2:viewpager2:1.0.0
| +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| +--- androidx.fragment:fragment:1.1.0 -> 1.3.6 (*)
| +--- androidx.recyclerview:recyclerview:1.1.0 (*)
| +--- androidx.core:core:1.1.0 -> 1.8.0 (*)
| \--- androidx.collection:collection:1.1.0 (*)
+--- androidx.constraintlayout:constraintlayout:2.1.4 (*)
\--- com.alibaba:arouter-api:1.5.1
+--- com.alibaba:arouter-annotation:1.0.6
\--- com.android.support:support-v4:28.0.0
+--- com.android.support:support-compat:28.0.0
| +--- com.android.support:support-annotations:28.0.0
| +--- com.android.support:collections:28.0.0
| | \--- com.android.support:support-annotations:28.0.0
| +--- android.arch.lifecycle:runtime:1.1.1
| | +--- android.arch.lifecycle:common:1.1.1
| | | \--- com.android.support:support-annotations:26.1.0 -> 28.0.0
| | +--- android.arch.core:common:1.1.1
| | | \--- com.android.support:support-annotations:26.1.0 -> 28.0.0
| | \--- com.android.support:support-annotations:26.1.0 -> 28.0.0
| \--- com.android.support:versionedparcelable:28.0.0
| +--- com.android.support:support-annotations:28.0.0
| \--- com.android.support:collections:28.0.0 (*)
+--- com.android.support:support-media-compat:28.0.0
| +--- com.android.support:support-annotations:28.0.0
| +--- com.android.support:support-compat:28.0.0 (*)
| \--- com.android.support:versionedparcelable:28.0.0 (*)
+--- com.android.support:support-core-utils:28.0.0
| +--- com.android.support:support-annotations:28.0.0
| +--- com.android.support:support-compat:28.0.0 (*)
| +--- com.android.support:documentfile:28.0.0
| | \--- com.android.support:support-annotations:28.0.0
| +--- com.android.support:loader:28.0.0
| | +--- com.android.support:support-annotations:28.0.0
| | +--- com.android.support:support-compat:28.0.0 (*)
| | +--- android.arch.lifecycle:livedata:1.1.1
| | | +--- android.arch.core:runtime:1.1.1
| | | | +--- com.android.support:support-annotations:26.1.0 -> 28.0.0
| | | | \--- android.arch.core:common:1.1.1 (*)
| | | +--- android.arch.lifecycle:livedata-core:1.1.1
| | | | +--- android.arch.lifecycle:common:1.1.1 (*)
| | | | +--- android.arch.core:common:1.1.1 (*)
| | | | \--- android.arch.core:runtime:1.1.1 (*)
| | | \--- android.arch.core:common:1.1.1 (*)
| | \--- android.arch.lifecycle:viewmodel:1.1.1
| | \--- com.android.support:support-annotations:26.1.0 -> 28.0.0
| +--- com.android.support:localbroadcastmanager:28.0.0
| | \--- com.android.support:support-annotations:28.0.0
| \--- com.android.support:print:28.0.0
| \--- com.android.support:support-annotations:28.0.0
+--- com.android.support:support-core-ui:28.0.0
| +--- com.android.support:support-annotations:28.0.0
| +--- com.android.support:support-compat:28.0.0 (*)
| +--- com.android.support:support-core-utils:28.0.0 (*)
| +--- com.android.support:customview:28.0.0
| | +--- com.android.support:support-annotations:28.0.0
| | \--- com.android.support:support-compat:28.0.0 (*)
| +--- com.android.support:viewpager:28.0.0
| | +--- com.android.support:support-annotations:28.0.0
| | +--- com.android.support:support-compat:28.0.0 (*)
| | \--- com.android.support:customview:28.0.0 (*)
| +--- com.android.support:coordinatorlayout:28.0.0
| | +--- com.android.support:support-annotations:28.0.0
| | +--- com.android.support:support-compat:28.0.0 (*)
| | \--- com.android.support:customview:28.0.0 (*)
| +--- com.android.support:drawerlayout:28.0.0
| | +--- com.android.support:support-annotations:28.0.0
| | +--- com.android.support:support-compat:28.0.0 (*)
| | \--- com.android.support:customview:28.0.0 (*)
| +--- com.android.support:slidingpanelayout:28.0.0
| | +--- com.android.support:support-annotations:28.0.0
| | +--- com.android.support:support-compat:28.0.0 (*)
| | \--- com.android.support:customview:28.0.0 (*)
| +--- com.android.support:interpolator:28.0.0
| | \--- com.android.support:support-annotations:28.0.0
| +--- com.android.support:swiperefreshlayout:28.0.0
| | +--- com.android.support:support-annotations:28.0.0
| | +--- com.android.support:support-compat:28.0.0 (*)
| | \--- com.android.support:interpolator:28.0.0 (*)
| +--- com.android.support:asynclayoutinflater:28.0.0
| | +--- com.android.support:support-annotations:28.0.0
| | \--- com.android.support:support-compat:28.0.0 (*)
| \--- com.android.support:cursoradapter:28.0.0
| \--- com.android.support:support-annotations:28.0.0
\--- com.android.support:support-fragment:28.0.0
+--- com.android.support:support-compat:28.0.0 (*)
+--- com.android.support:support-core-ui:28.0.0 (*)
+--- com.android.support:support-core-utils:28.0.0 (*)
+--- com.android.support:support-annotations:28.0.0
+--- com.android.support:loader:28.0.0 (*)
\--- android.arch.lifecycle:viewmodel:1.1.1 (*)
(c) - dependency constraint
(*) - dependencies omitted (listed previously)
A web-based, searchable dependency report is available by adding the --scan option.
BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
D:\002_Project\002_Android_Learn\Componentization>
分析上述源码 , 发现 ARoute 框架 com.alibaba:arouter-api:1.5.1
中使用的 Android 支持库都是 com.android.support
依赖分组下的 ;
\--- com.alibaba:arouter-api:1.5.1
+--- com.alibaba:arouter-annotation:1.0.6
\--- com.android.support:support-v4:28.0.0
+--- com.android.support:support-compat:28.0.0
| +--- com.android.support:support-annotations:28.0.0
| +--- com.android.support:collections:28.0.0
| | \--- com.android.support:support-annotations:28.0.0
| +--- android.arch.lifecycle:runtime:1.1.1
| | +--- android.arch.lifecycle:common:1.1.1
| | | \--- com.android.support:support-annotations:26.1.0 -> 28.0.0
| | +--- android.arch.core:common:1.1.1
| | | \--- com.android.support:support-annotations:26.1.0 -> 28.0.0
| | \--- com.android.support:support-annotations:26.1.0 -> 28.0.0
| \--- com.android.support:versionedparcelable:28.0.0
| +--- com.android.support:support-annotations:28.0.0
| \--- com.android.support:collections:28.0.0 (*)
+--- com.android.support:support-media-compat:28.0.0
同时在 androidx.appcompat:appcompat:1.5.1
中又发现了 androidx 支持库 ;
+--- androidx.appcompat:appcompat:1.5.1
| +--- androidx.activity:activity:1.5.1
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| | +--- androidx.core:core:1.8.0 (*)
| | +--- androidx.lifecycle:lifecycle-runtime:2.5.1 (*)
| | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.7.10 (*)
| | | \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1 (c)
| | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | | +--- androidx.core:core-ktx:1.2.0 -> 1.8.0 (*)
| | | +--- androidx.lifecycle:lifecycle-livedata-core:2.5.1
| | | | +--- androidx.arch.core:core-common:2.1.0 (*)
| | | | +--- androidx.arch.core:core-runtime:2.1.0 (*)
| | | | \--- androidx.lifecycle:lifecycle-common:2.5.1 (*)
| | | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1 (*)
| | | +--- androidx.savedstate:savedstate:1.2.0
| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | | +--- androidx.arch.core:core-common:2.1.0 (*)
| | | | +--- androidx.lifecycle:lifecycle-common:2.4.0 -> 2.5.1 (*)
| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.20 -> 1.7.10 (*)
这两种库出现了冲突 , 导致编译报错 ;
androidx 和 support 库不能一起使用 ;
在 Android Studio 工程根目录的 gradle.properties 配置文件中 , 添加如下配置 , 可兼容 support 和 androidx 库 ;
# 兼容 support 和 androidx 库
android.enableJetifier=true
进行上述配置后 , 再次执行
gradlew app:dependencies --configuration releaseRuntimeClasspath
命令后 , 查看依赖 , 命令行输入内容 :
D:\002_Project\002_Android_Learn\Componentization>gradlew app:dependencies --configuration releaseRuntimeClasspath
WARNING:: Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories.
This repository is deprecated and it will be shut down in the future.
See http://developer.android.com/r/tools/jcenter-end-of-service for more information.
Currently detected usages in: root project 'Componentization', project ':app', project ':base', ...
> Task :app:dependencies
------------------------------------------------------------
Project :app
------------------------------------------------------------
releaseRuntimeClasspath - Runtime classpath of compilation 'release' (target (androidJvm)).
+--- org.jetbrains.kotlin:kotlin-stdlib:1.7.10
| +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10
| \--- org.jetbrains:annotations:13.0
+--- androidx.core:core-ktx:1.8.0
| +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| +--- androidx.core:core:1.8.0
| | +--- androidx.annotation:annotation:1.2.0 -> 1.3.0
| | +--- androidx.annotation:annotation-experimental:1.1.0
| | +--- androidx.collection:collection:1.0.0 -> 1.1.0
| | | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.concurrent:concurrent-futures:1.0.0
| | | +--- com.google.guava:listenablefuture:1.0
| | | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.lifecycle:lifecycle-runtime:2.3.1 -> 2.5.1
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | +--- androidx.arch.core:core-common:2.1.0
| | | | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | +--- androidx.arch.core:core-runtime:2.1.0
| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | | \--- androidx.arch.core:core-common:2.1.0 (*)
| | | \--- androidx.lifecycle:lifecycle-common:2.5.1
| | | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | \--- androidx.versionedparcelable:versionedparcelable:1.1.1
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.7.10 (*)
+--- androidx.appcompat:appcompat:1.5.1
| +--- androidx.activity:activity:1.5.1
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| | +--- androidx.core:core:1.8.0 (*)
| | +--- androidx.lifecycle:lifecycle-runtime:2.5.1 (*)
| | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.7.10 (*)
| | | \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1 (c)
| | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | | +--- androidx.core:core-ktx:1.2.0 -> 1.8.0 (*)
| | | +--- androidx.lifecycle:lifecycle-livedata-core:2.5.1
| | | | +--- androidx.arch.core:core-common:2.1.0 (*)
| | | | +--- androidx.arch.core:core-runtime:2.1.0 (*)
| | | | \--- androidx.lifecycle:lifecycle-common:2.5.1 (*)
| | | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1 (*)
| | | +--- androidx.savedstate:savedstate:1.2.0
| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | | +--- androidx.arch.core:core-common:2.1.0 (*)
| | | | +--- androidx.lifecycle:lifecycle-common:2.4.0 -> 2.5.1 (*)
| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.20 -> 1.7.10 (*)
| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.7.10 (*)
| | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1
| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1
| | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.1
| | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1
| | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1 (c)
| | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1 (c)
| | | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.1 (c)
| | | | +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.0
| | | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.0 -> 1.7.10 (*)
| | | | | \--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.0
| | | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.0 -> 1.7.10 (*)
| | | | \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.6.0 -> 1.7.10
| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1 (*)
| | | \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.0 (*)
| | +--- androidx.savedstate:savedstate:1.2.0 (*)
| | +--- androidx.tracing:tracing:1.0.0
| | | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.7.10 (*)
| +--- androidx.annotation:annotation:1.3.0
| +--- androidx.appcompat:appcompat-resources:1.5.1
| | +--- androidx.annotation:annotation:1.2.0 -> 1.3.0
| | +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| | +--- androidx.core:core:1.6.0 -> 1.8.0 (*)
| | +--- androidx.vectordrawable:vectordrawable:1.1.0
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | +--- androidx.core:core:1.1.0 -> 1.8.0 (*)
| | | \--- androidx.collection:collection:1.1.0 (*)
| | +--- androidx.vectordrawable:vectordrawable-animated:1.1.0
| | | +--- androidx.vectordrawable:vectordrawable:1.1.0 (*)
| | | +--- androidx.interpolator:interpolator:1.0.0
| | | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | | \--- androidx.collection:collection:1.1.0 (*)
| | \--- androidx.appcompat:appcompat:1.5.1 (c)
| +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| +--- androidx.core:core:1.8.0 (*)
| +--- androidx.core:core-ktx:1.8.0 (*)
| +--- androidx.cursoradapter:cursoradapter:1.0.0
| | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| +--- androidx.drawerlayout:drawerlayout:1.0.0 -> 1.1.1
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.core:core:1.2.0 -> 1.8.0 (*)
| | \--- androidx.customview:customview:1.1.0
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.core:core:1.3.0 -> 1.8.0 (*)
| | \--- androidx.collection:collection:1.1.0 (*)
| +--- androidx.emoji2:emoji2:1.2.0
| | +--- androidx.annotation:annotation:1.2.0 -> 1.3.0
| | +--- androidx.collection:collection:1.1.0 (*)
| | +--- androidx.core:core:1.3.0 -> 1.8.0 (*)
| | +--- androidx.lifecycle:lifecycle-process:2.4.1
| | | +--- androidx.lifecycle:lifecycle-runtime:2.4.1 -> 2.5.1 (*)
| | | +--- androidx.startup:startup-runtime:1.1.1
| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | | \--- androidx.tracing:tracing:1.0.0 (*)
| | | \--- androidx.annotation:annotation:1.2.0 -> 1.3.0
| | \--- androidx.startup:startup-runtime:1.0.0 -> 1.1.1 (*)
| +--- androidx.emoji2:emoji2-views-helper:1.2.0
| | +--- androidx.collection:collection:1.1.0 (*)
| | +--- androidx.core:core:1.3.0 -> 1.8.0 (*)
| | \--- androidx.emoji2:emoji2:1.2.0 (*)
| +--- androidx.fragment:fragment:1.3.6
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.core:core:1.2.0 -> 1.8.0 (*)
| | +--- androidx.collection:collection:1.1.0 (*)
| | +--- androidx.viewpager:viewpager:1.0.0
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| | | \--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
| | +--- androidx.loader:loader:1.0.0
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| | | +--- androidx.lifecycle:lifecycle-livedata:2.0.0
| | | | +--- androidx.arch.core:core-runtime:2.0.0 -> 2.1.0 (*)
| | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.0.0 -> 2.5.1 (*)
| | | | \--- androidx.arch.core:core-common:2.0.0 -> 2.1.0 (*)
| | | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 -> 2.5.1 (*)
| | +--- androidx.activity:activity:1.2.4 -> 1.5.1 (*)
| | +--- androidx.lifecycle:lifecycle-livedata-core:2.3.1 -> 2.5.1 (*)
| | +--- androidx.lifecycle:lifecycle-viewmodel:2.3.1 -> 2.5.1 (*)
| | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1 -> 2.5.1 (*)
| | +--- androidx.savedstate:savedstate:1.1.0 -> 1.2.0 (*)
| | \--- androidx.annotation:annotation-experimental:1.0.0 -> 1.1.0
| +--- androidx.lifecycle:lifecycle-runtime:2.5.1 (*)
| +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1 (*)
| +--- androidx.resourceinspection:resourceinspection-annotation:1.0.1
| | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| +--- androidx.savedstate:savedstate:1.2.0 (*)
| +--- org.jetbrains.kotlin:kotlin-stdlib:1.7.10 (*)
| \--- androidx.appcompat:appcompat-resources:1.5.1 (c)
+--- com.google.android.material:material:1.6.1
| +--- androidx.annotation:annotation:1.2.0 -> 1.3.0
| +--- androidx.appcompat:appcompat:1.1.0 -> 1.5.1 (*)
| +--- androidx.cardview:cardview:1.0.0
| | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| +--- androidx.coordinatorlayout:coordinatorlayout:1.1.0
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.core:core:1.1.0 -> 1.8.0 (*)
| | +--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
| | \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| +--- androidx.constraintlayout:constraintlayout:2.0.1 -> 2.1.4
| | +--- androidx.appcompat:appcompat:1.2.0 -> 1.5.1 (*)
| | +--- androidx.core:core:1.3.2 -> 1.8.0 (*)
| | \--- androidx.constraintlayout:constraintlayout-core:1.0.4
| +--- androidx.core:core:1.5.0 -> 1.8.0 (*)
| +--- androidx.drawerlayout:drawerlayout:1.1.1 (*)
| +--- androidx.dynamicanimation:dynamicanimation:1.0.0
| | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| | +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| | \--- androidx.legacy:legacy-support-core-utils:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| | +--- androidx.documentfile:documentfile:1.0.0
| | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | +--- androidx.loader:loader:1.0.0 (*)
| | +--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0
| | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | \--- androidx.print:print:1.0.0
| | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| +--- androidx.annotation:annotation-experimental:1.0.0 -> 1.1.0
| +--- androidx.fragment:fragment:1.2.5 -> 1.3.6 (*)
| +--- androidx.lifecycle:lifecycle-runtime:2.0.0 -> 2.5.1 (*)
| +--- androidx.recyclerview:recyclerview:1.0.0 -> 1.1.0
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.core:core:1.1.0 -> 1.8.0 (*)
| | +--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
| | \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| +--- androidx.transition:transition:1.2.0
| | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.core:core:1.0.1 -> 1.8.0 (*)
| | \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| +--- androidx.vectordrawable:vectordrawable:1.1.0 (*)
| \--- androidx.viewpager2:viewpager2:1.0.0
| +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| +--- androidx.fragment:fragment:1.1.0 -> 1.3.6 (*)
| +--- androidx.recyclerview:recyclerview:1.1.0 (*)
| +--- androidx.core:core:1.1.0 -> 1.8.0 (*)
| \--- androidx.collection:collection:1.1.0 (*)
+--- androidx.constraintlayout:constraintlayout:2.1.4 (*)
\--- com.alibaba:arouter-api:1.5.1
+--- com.alibaba:arouter-annotation:1.0.6
\--- androidx.legacy:legacy-support-v4:1.0.0
+--- androidx.core:core:1.0.0 -> 1.8.0 (*)
+--- androidx.media:media:1.0.0
| +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| \--- androidx.versionedparcelable:versionedparcelable:1.0.0 -> 1.1.1 (*)
+--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
+--- androidx.legacy:legacy-support-core-ui:1.0.0
| +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| +--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
| +--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
| +--- androidx.viewpager:viewpager:1.0.0 (*)
| +--- androidx.coordinatorlayout:coordinatorlayout:1.0.0 -> 1.1.0 (*)
| +--- androidx.drawerlayout:drawerlayout:1.0.0 -> 1.1.1 (*)
| +--- androidx.slidingpanelayout:slidingpanelayout:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| | \--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
| +--- androidx.interpolator:interpolator:1.0.0 (*)
| +--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| | \--- androidx.interpolator:interpolator:1.0.0 (*)
| +--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | \--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| \--- androidx.cursoradapter:cursoradapter:1.0.0 (*)
\--- androidx.fragment:fragment:1.0.0 -> 1.3.6 (*)
(c) - dependency constraint
(*) - dependencies omitted (listed previously)
A web-based, searchable dependency report is available by adding the --scan option.
BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
D:\002_Project\002_Android_Learn\Componentization>
重点分析 ARoute 框架的依赖 :
\--- com.alibaba:arouter-api:1.5.1
+--- com.alibaba:arouter-annotation:1.0.6
\--- androidx.legacy:legacy-support-v4:1.0.0
+--- androidx.core:core:1.0.0 -> 1.8.0 (*)
+--- androidx.media:media:1.0.0
| +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| \--- androidx.versionedparcelable:versionedparcelable:1.0.0 -> 1.1.1 (*)
+--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
+--- androidx.legacy:legacy-support-core-ui:1.0.0
| +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| +--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
| +--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
| +--- androidx.viewpager:viewpager:1.0.0 (*)
| +--- androidx.coordinatorlayout:coordinatorlayout:1.0.0 -> 1.1.0 (*)
| +--- androidx.drawerlayout:drawerlayout:1.0.0 -> 1.1.1 (*)
| +--- androidx.slidingpanelayout:slidingpanelayout:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| | \--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
| +--- androidx.interpolator:interpolator:1.0.0 (*)
| +--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| | \--- androidx.interpolator:interpolator:1.0.0 (*)
| +--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | \--- androidx.core:core:1.0.0 -> 1.8.0 (*)
| \--- androidx.cursoradapter:cursoradapter:1.0.0 (*)
\--- androidx.fragment:fragment:1.0.0 -> 1.3.6 (*)
发现 com.alibaba:arouter-api:1.5.1
依赖库 , 使用的是 androidx 库中的依赖 ;