Android库依赖关系
依赖关系查看方式1
双击模块的Tasks->help->dependencies中可以看项目中的依赖库以及依赖库的导入关系。
在下面所示的依赖关系中:
\代表该层的最有一个依赖。-来表示同一层依赖的最后一个节点。
例如:
— A
+ — B
+ — C
\ — D
标识D为A下一层最后一个依赖。
+--- com.google.code.gson:gson:2.6.2
+--- commons-codec:commons-codec:1.6
+--- androidx.annotation:annotation:1.1.0 -> 1.3.0
+--- androidx.appcompat:appcompat:1.5.0
| +--- androidx.activity:activity:1.5.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.lifecycle:lifecycle-runtime:2.3.1 -> 2.5.0
| | | | +--- 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.lifecycle:lifecycle-common:2.5.0
| | | | \--- 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
| | | \--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | +--- androidx.lifecycle:lifecycle-runtime:2.5.0 (*)
| | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.0
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.7.10
| | | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10
| | | \--- org.jetbrains:annotations:13.0
| | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.0
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.3.0
| | | +--- androidx.core:core-ktx:1.2.0 -> 1.8.0
| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | | +--- androidx.core:core:1.8.0 (*)
| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.7.10 (*)
| | | +--- androidx.lifecycle:lifecycle-livedata-core:2.5.0
| | | | \--- androidx.lifecycle:lifecycle-common:2.5.0 (*)
| | | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.0 (*)
| | | +--- androidx.savedstate:savedstate:1.2.0
| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.3.0
| | | | \--- 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-jvm:1.6.1 (c)
| | | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-core: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 (*)
| | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.7.10 (*)
| +--- androidx.annotation:annotation:1.3.0
| +--- androidx.appcompat:appcompat-resources:1.5.0
| | +--- androidx.annotation:annotation:1.2.0 -> 1.3.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.core:core: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.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.annotation:annotation:1.1.0 -> 1.3.0
| | | | | \--- androidx.arch.core:core-common:2.1.0 (*)
| | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.0.0 -> 2.5.0 (*)
| | | | \--- androidx.arch.core:core-common:2.0.0 -> 2.1.0 (*)
| | | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 -> 2.5.0 (*)
| | +--- androidx.activity:activity:1.2.4 -> 1.5.0 (*)
| | +--- androidx.lifecycle:lifecycle-livedata-core:2.3.1 -> 2.5.0 (*)
| | +--- androidx.lifecycle:lifecycle-viewmodel:2.3.1 -> 2.5.0 (*)
| | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1 -> 2.5.0 (*)
| | +--- androidx.savedstate:savedstate:1.1.0 -> 1.2.0 (*)
| | \--- androidx.annotation:annotation-experimental:1.0.0 -> 1.1.0
| \--- androidx.savedstate:savedstate:1.1.0 -> 1.2.0 (*)
+--- 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.0 (*)
| +--- 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.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.0 (*)
| +--- 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
+--- project :jjaggregationpushsdk
+--- project :appoppo (*)
+--- com.google.code.gson:gson:{strictly 2.6.2} -> 2.6.2 (c)
+--- commons-codec:commons-codec:{strictly 1.6} -> 1.6 (c)
+--- androidx.annotation:annotation:{strictly 1.3.0} -> 1.3.0 (c)
+--- androidx.appcompat:appcompat:{strictly 1.5.0} -> 1.5.0 (c)
+--- com.google.android.material:material:{strictly 1.6.1} -> 1.6.1 (c)
+--- androidx.constraintlayout:constraintlayout:{strictly 2.1.4} -> 2.1.4 (c)
+--- junit:junit:4.13.2
| \--- org.hamcrest:hamcrest-core:1.3
+--- junit:junit:{strictly 4.13.2} -> 4.13.2 (c)
+--- androidx.activity:activity:{strictly 1.5.0} -> 1.5.0 (c)
+--- androidx.appcompat:appcompat-resources:{strictly 1.5.0} -> 1.5.0 (c)
+--- androidx.core:core:{strictly 1.8.0} -> 1.8.0 (c)
+--- androidx.cursoradapter:cursoradapter:{strictly 1.0.0} -> 1.0.0 (c)
+--- androidx.drawerlayout:drawerlayout:{strictly 1.1.1} -> 1.1.1 (c)
+--- androidx.fragment:fragment:{strictly 1.3.6} -> 1.3.6 (c)
+--- androidx.savedstate:savedstate:{strictly 1.2.0} -> 1.2.0 (c)
+--- androidx.cardview:cardview:{strictly 1.0.0} -> 1.0.0 (c)
+--- androidx.coordinatorlayout:coordinatorlayout:{strictly 1.1.0} -> 1.1.0 (c)
+--- androidx.dynamicanimation:dynamicanimation:{strictly 1.0.0} -> 1.0.0 (c)
+--- androidx.annotation:annotation-experimental:{strictly 1.1.0} -> 1.1.0 (c)
+--- androidx.lifecycle:lifecycle-runtime:{strictly 2.5.0} -> 2.5.0 (c)
+--- androidx.recyclerview:recyclerview:{strictly 1.1.0} -> 1.1.0 (c)
+--- androidx.transition:transition:{strictly 1.2.0} -> 1.2.0 (c)
+--- androidx.vectordrawable:vectordrawable:{strictly 1.1.0} -> 1.1.0 (c)
+--- androidx.viewpager2:viewpager2:{strictly 1.0.0} -> 1.0.0 (c)
+--- org.hamcrest:hamcrest-core:{strictly 1.3} -> 1.3 (c)
+--- androidx.lifecycle:lifecycle-viewmodel:{strictly 2.5.0} -> 2.5.0 (c)
+--- androidx.lifecycle:lifecycle-viewmodel-savedstate:{strictly 2.5.0} -> 2.5.0 (c)
+--- org.jetbrains.kotlin:kotlin-stdlib:{strictly 1.7.10} -> 1.7.10 (c)
+--- androidx.vectordrawable:vectordrawable-animated:{strictly 1.1.0} -> 1.1.0 (c)
+--- androidx.versionedparcelable:versionedparcelable:{strictly 1.1.1} -> 1.1.1 (c)
+--- androidx.customview:customview:{strictly 1.1.0} -> 1.1.0 (c)
+--- androidx.collection:collection:{strictly 1.1.0} -> 1.1.0 (c)
+--- androidx.viewpager:viewpager:{strictly 1.0.0} -> 1.0.0 (c)
+--- androidx.loader:loader:{strictly 1.0.0} -> 1.0.0 (c)
+--- androidx.lifecycle:lifecycle-livedata-core:{strictly 2.5.0} -> 2.5.0 (c)
+--- androidx.legacy:legacy-support-core-utils:{strictly 1.0.0} -> 1.0.0 (c)
+--- androidx.arch.core:core-common:{strictly 2.1.0} -> 2.1.0 (c)
+--- androidx.lifecycle:lifecycle-common:{strictly 2.5.0} -> 2.5.0 (c)
+--- androidx.core:core-ktx:{strictly 1.8.0} -> 1.8.0 (c)
+--- org.jetbrains.kotlinx:kotlinx-coroutines-android:{strictly 1.6.1} -> 1.6.1 (c)
+--- org.jetbrains.kotlin:kotlin-stdlib-common:{strictly 1.7.10} -> 1.7.10 (c)
+--- org.jetbrains:annotations:{strictly 13.0} -> 13.0 (c)
+--- androidx.interpolator:interpolator:{strictly 1.0.0} -> 1.0.0 (c)
+--- androidx.lifecycle:lifecycle-livedata:{strictly 2.0.0} -> 2.0.0 (c)
+--- androidx.documentfile:documentfile:{strictly 1.0.0} -> 1.0.0 (c)
+--- androidx.localbroadcastmanager:localbroadcastmanager:{strictly 1.0.0} -> 1.0.0 (c)
+--- androidx.print:print:{strictly 1.0.0} -> 1.0.0 (c)
+--- org.jetbrains.kotlinx:kotlinx-coroutines-core:{strictly 1.6.1} -> 1.6.1 (c)
+--- org.jetbrains.kotlinx:kotlinx-coroutines-bom:{strictly 1.6.1} -> 1.6.1 (c)
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:{strictly 1.6.0} -> 1.6.0 (c)
+--- androidx.arch.core:core-runtime:{strictly 2.1.0} -> 2.1.0 (c)
+--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:{strictly 1.6.1} -> 1.6.1 (c)
\--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:{strictly 1.6.0} -> 1.6.0 (c)
依赖关系查看方式2
引入依赖如下:
dependencies {
// implementation 'androidx.appcompat:appcompat:1.6.1'
// implementation 'com.google.android.material:material:1.9.0'
// implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
// testImplementation 'junit:junit:4.13.2'
// androidTestImplementation 'androidx.test.ext:junit:1.1.5'
// androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
// implementation('com.android.support:appcompat-v7:28.0.0')
implementation('com.android.support:support-v4:28.0.0')
// implementation('com.android.support:appcompat-v7:28.0.0'){exclude group: 'com.android.support',module: 'support-v4' exclude group: 'android.arch.lifecycle' exclude group: 'android.arch.core'}
}
依赖如下:
releaseUnitTestRuntimeClasspath - Dependencies for runtime/packaging
+--- com.android.support:support-v4:28.0.0@aar
+--- com.android.support:support-media-compat:28.0.0@aar
+--- com.android.support:support-fragment:28.0.0@aar
+--- com.android.support:support-core-ui:28.0.0@aar
+--- com.android.support:support-core-utils:28.0.0@aar
+--- com.android.support:loader:28.0.0@aar
+--- com.android.support:viewpager:28.0.0@aar
+--- com.android.support:coordinatorlayout:28.0.0@aar
+--- com.android.support:drawerlayout:28.0.0@aar
+--- com.android.support:slidingpanelayout:28.0.0@aar
+--- com.android.support:customview:28.0.0@aar
+--- com.android.support:swiperefreshlayout:28.0.0@aar
+--- com.android.support:asynclayoutinflater:28.0.0@aar
+--- com.android.support:support-compat:28.0.0@aar
+--- com.android.support:versionedparcelable:28.0.0@aar
+--- com.android.support:collections:28.0.0@jar
+--- android.arch.lifecycle:runtime:1.1.1@aar
+--- com.android.support:documentfile:28.0.0@aar
+--- com.android.support:localbroadcastmanager:28.0.0@aar
+--- com.android.support:print:28.0.0@aar
+--- com.android.support:interpolator:28.0.0@aar
+--- com.android.support:cursoradapter:28.0.0@aar
+--- android.arch.lifecycle:viewmodel:1.1.1@aar
+--- android.arch.lifecycle:livedata:1.1.1@aar
+--- android.arch.lifecycle:livedata-core:1.1.1@aar
+--- android.arch.lifecycle:common:1.1.1@jar
+--- android.arch.core:runtime:1.1.1@aar
+--- android.arch.core:common:1.1.1@jar
\--- com.android.support:support-annotations:28.0.0@jar