ExternalLibraryDependency (Project project, File file, String scope) { File modules2Dir = new File(project.getGradle().getGradleUserHomeDir(), "caches/modules-2/files-2.1"); return resolveLibraryByPath(file, modules2Dir, scope); }