有没有一种简单的方法来查看作为传递对象继承的外部依赖关系的起源?
是否有像其他IDE所提供的依赖关系图或“有效POM”?
最佳答案
我在Android Studio中找不到任何选项,但正在运行
gradlew -q dependencies app:dependencies
(where app is the name of application module)
以这种形式提供有用的依赖性报告:
...
+--- com.google.code.gson:gson:2.2.4
+--- com.jakewharton:disklrucache:2.0.2
+--- com.google.api-client:google-api-client:1.19.0
| +--- com.google.oauth-client:google-oauth-client:1.19.0
| | +--- com.google.http-client:google-http-client:1.19.0
| | | +--- com.google.code.findbugs:jsr305:1.3.9
| | | \--- org.apache.httpcomponents:httpclient:4.0.1
| | | +--- org.apache.httpcomponents:httpcore:4.0.1
| | | +--- commons-logging:commons-logging:1.1.1
| | | \--- commons-codec:commons-codec:1.3
| | \--- com.google.code.findbugs:jsr305:1.3.9
| +--- com.google.http-client:google-http-client-jackson2:1.19.0
关于android - Android Studio中继承的外部依赖项起源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25833171/