请帮我写出查找com.android.support:support-compat:27.1.1模块在哪个库里的代码
时间: 2024-05-02 18:20:06 浏览: 202
android support v7 27.1.1源代码,注意是java文件,不是class文件
以下是查找com.android.support:support-compat:27.1.1模块在哪个库里的代码:
在build.gradle文件中添加以下代码:
```gradle
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support' && requested.name == 'support-compat') {
println "Found com.android.support:support-compat in " + details.requested.getRequestedVersion() + " at " + details.resolved.artifactPath.path
}
}
}
```
然后,在终端中执行以下命令即可:
```bash
./gradlew clean build
```
注意:在执行命令前,请确认已经安装了Gradle。
阅读全文