如何找到在OkHttp中拖动的依赖项?

时间:2016-01-18 12:47:43

标签: android dependencies android-gradle

android-gradle定义任务dependencies,列出任何Android项目的依赖性层次结构。但它似乎并不完整。虽然下面的文本输出是我的项目的dependencies运行的输出,但进一步向下的屏幕截图显示OkHttp是未列出的依赖项。怎么会?为什么不dependencies列出它,如何找出哪个库将其拉入?

_debugCompile - ## Internal use, do not manually configure ##
+--- com.fernandocejas.frodo:frodo-api:0.8.1
+--- project :mylib-common
|    +--- com.android.support:appcompat-v7:23.1.1
|    |    \--- com.android.support:support-v4:23.1.1
|    |         \--- com.android.support:support-annotations:23.1.1
|    +--- com.koushikdutta.ion:ion:2.1.6
|    |    +--- com.google.code.gson:gson:2.3
|    |    \--- com.koushikdutta.async:androidasync:2.1.6
|    +--- com.squareup:otto:1.3.8
|    +--- com.google.android.gms:play-services-basement:8.4.0
|    |    \--- com.android.support:support-v4:23.0.0 -> 23.1.1 (*)
|    +--- com.google.android.gms:play-services-appindexing:8.4.0
|    |    \--- com.google.android.gms:play-services-base:8.4.0
|    |         \--- com.google.android.gms:play-services-basement:8.4.0 (*)
|    +--- com.google.android.gms:play-services-location:8.4.0
|    |    +--- com.google.android.gms:play-services-base:8.4.0 (*)
|    |    \--- com.google.android.gms:play-services-maps:8.4.0
|    |         \--- com.google.android.gms:play-services-base:8.4.0 (*)
|    +--- com.google.android.gms:play-services-identity:8.4.0
|    |    \--- com.google.android.gms:play-services-base:8.4.0 (*)
|    +--- com.at:atinternet:1.6
|    +--- io.reactivex:rxjava:1.0.16
|    +--- io.reactivex:rxandroid:1.0.1
|    |    \--- io.reactivex:rxjava:1.0.13 -> 1.0.16
|    +--- com.jakewharton.threetenabp:threetenabp:1.0.3
|    |    \--- org.threeten:threetenbp:1.3.1
|    +--- de.spring.mobile:spring-appsensor-android:1.7.1
|    |    \--- de.spring.util.android:spring-util-android:1.7.1
|    +--- commons-lang:commons-lang:2.6
|    +--- com.katalysator:glimr:1.8.1
|    \--- com.crashlytics.sdk.android:crashlytics:2.5.2
|         +--- com.crashlytics.sdk.android:answers:1.3.2
|         |    \--- io.fabric.sdk.android:fabric:1.3.6
|         +--- io.fabric.sdk.android:fabric:1.3.6
|         +--- com.crashlytics.sdk.android:crashlytics-core:2.3.5
|         |    +--- com.crashlytics.sdk.android:answers:1.3.2 (*)
|         |    \--- io.fabric.sdk.android:fabric:1.3.6
|         \--- com.crashlytics.sdk.android:beta:1.1.3
+--- com.android.support:design:23.1.1
|    +--- com.android.support:appcompat-v7:23.1.1 (*)
|    +--- com.android.support:recyclerview-v7:23.1.1
|    |    +--- com.android.support:support-annotations:23.1.1
|    |    \--- com.android.support:support-v4:23.1.1 (*)
|    \--- com.android.support:support-v4:23.1.1 (*)
+--- com.android.support:recyclerview-v7:23.1.1 (*)
+--- com.android.support:cardview-v7:23.1.1
+--- com.crashlytics.sdk.android:crashlytics:2.5.2 (*)
+--- com.mobsandgeeks:android-saripaar:1.0.3
+--- com.jakewharton:butterknife:6.0.0
+--- me.tatarka:bindingcollectionadapter:0.16
|    +--- com.android.databinding:library:1.0-rc3 -> 1.0-rc5
|    |    +--- com.android.support:support-v4:21.0.3 -> 23.1.1 (*)
|    |    \--- com.android.databinding:baseLibrary:1.0-rc5 -> 1.1
|    +--- com.android.databinding:baseLibrary:1.0-rc5 -> 1.1
|    +--- com.android.databinding:adapters:1.0-rc3 -> 1.0-rc5
|    |    +--- com.android.databinding:library:1.0-rc5 (*)
|    |    \--- com.android.databinding:baseLibrary:1.0-rc5 -> 1.1
|    \--- com.android.support:support-v4:21.0.3 -> 23.1.1 (*)
+--- me.tatarka:bindingcollectionadapter-recyclerview:0.16
|    +--- com.android.support:recyclerview-v7:21.0.3 -> 23.1.1 (*)
|    +--- com.android.databinding:library:1.0-rc3 -> 1.0-rc5 (*)
|    +--- com.android.databinding:baseLibrary:1.0-rc5 -> 1.1
|    +--- com.android.databinding:adapters:1.0-rc3 -> 1.0-rc5 (*)
|    \--- me.tatarka:bindingcollectionadapter:0.16 (*)
+--- com.mixpanel.android:mixpanel-android:4.6.4
+--- com.android.databinding:library:1.0-rc5 (*)
+--- com.android.databinding:baseLibrary:1.1
+--- com.android.databinding:adapters:1.0-rc5 (*)
+--- org.aspectj:aspectjrt:1.8.6
+--- com.fernandocejas.frodo:frodo-runtime:0.8.1
\--- com.android.databinding:compiler:1.1
     +--- com.android.databinding:compilerCommon:1.1
     |    +--- com.android.databinding:baseLibrary:1.1
     |    +--- org.apache.commons:commons-lang3:3.3.2
     |    +--- com.tunnelvisionlabs:antlr4:4.5
     |    |    +--- com.tunnelvisionlabs:antlr4-runtime:4.5
     |    |    |    +--- org.abego.treelayout:org.abego.treelayout.core:1.0.1
     |    |    |    \--- com.tunnelvisionlabs:antlr4-annotations:4.5
     |    |    +--- com.tunnelvisionlabs:antlr4-annotations:4.5
     |    |    +--- org.antlr:antlr-runtime:3.5.2
     |    |    \--- org.antlr:ST4:4.0.8
     |    |         \--- org.antlr:antlr-runtime:3.5.2
     |    +--- commons-io:commons-io:2.4
     |    \--- com.googlecode.juniversalchardet:juniversalchardet:1.0.3
     +--- com.android.databinding:baseLibrary:1.1
     +--- org.jetbrains.kotlin:kotlin-stdlib:1.0.0-beta-1103
     |    \--- org.jetbrains.kotlin:kotlin-runtime:1.0.0-beta-1103
     +--- org.apache.commons:commons-lang3:3.3.2
     +--- commons-io:commons-io:2.4
     +--- commons-codec:commons-codec:1.10
     +--- com.tunnelvisionlabs:antlr4:4.5 (*)
     \--- com.googlecode.juniversalchardet:juniversalchardet:1.0.3

线程的线程运行时

Thread list from debugger showing evidence of OkHttp

1 个答案:

答案 0 :(得分:1)

它是android sdk的一部分,......

  

是的。从Android 4.4开始,OkHttp成为了支持HttpUrlConnection的引擎。

消息来源 - https://twitter.com/jakewharton/status/482563299511250944 (来自我们最喜欢的杰克)