Android gradle multiproject dependency resolution
问题 In my Android project I have a task for copying the build dependencies to an external directory as below: task copyBuildDependencies(type: Copy) { delete "$buildDir/dependencies" afterEvaluate { from configurations.releaseCompileClasspath into "$buildDir/dependencies" doLast { FileTree files = fileTree("$buildDir/dependencies") files.forEach { file -> if (file.isFile() && file.name.endsWith(".aar")) { copy { from zipTree(file).matching { include "*.jar" } into "$buildDir/dependencies"