是否可以在Gradle Android项目中将所有依赖项作为jar文件收集到一个地方?
我尝试使用:Gradle: collect application dependencies
但是Gradle返回错误:
Could not find property 'testRuntime' on configuration container.
最佳答案
好吧,testRuntime是一个在您的项目中似乎不可用的配置。要将所有配置收集到一个文件夹中,可以执行以下操作:
task collectJars(type: Copy){
into "$buildDir/output/lib"
configurations.all{ config ->
from config
}
}
关于android - 使用Gradle Android插件收集依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24234568/