在Android Stdio中,我们可以看到如下。
类路径 'com.android.tools.build:gradle:1.5.0'
我知道这段代码是针对 jar 的 gradle 依赖项。 但是我在本地找不到这个jar。 我怎样才能找到这个jar?
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
最佳答案
Gradle 缓存默认会在这里
~/.gradle/caches/jars-<number>/<hash of jar>/<jar name>.jar
或
~/.gradle/caches/modules-<number>/files-<number>/<group id>/<artifact id>/<version>/<file hash>/<jar name>.jar
关于java - 在 gradle 中查找类路径的代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36083481/