在Android Studio 3 gradle - > - > Tasks - > android - > androidDependecies:
> Task :app:androidDependencies
debug
debugCompileClasspath - Dependencies for compilation
+--- androidx.core:core-ktx:1.0.1@aar
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.21@jar
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.21@jar
....
在我的app模块build.gradle中,我有:
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
此外,我还发现:
debugRuntimeClasspath - Dependencies for runtime/packaging
+--- androidx.core:core-ktx:1.0.1@aar
+--- com.google.android.material:material:1.1.0-alpha04@aar
+--- androidx.appcompat:appcompat:1.1.0-alpha01@aar
+--- androidx.constraintlayout:constraintlayout:1.1.3@aar
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.21@jar
+--- :a_lib
+--- com.github.nisrulz:qreader:2.1.2@aar
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.21@jar
+--- org.jetbrains.kotlin:kotlin-reflect:1.3.20@jar
...
Q1:我怎样才能找到第二个kotlin-stdlib-jdk7的来源?可能来自第三方lib?
Q2:如你所见,使用了Kotlin 1.3.21和1.3.20。我打赌1.3.20带有另一个lib,这可能会导致未来的问题?