gradle 遍历文件存在

String getExistAarPath(name, libsArray) {
  def result = "";
  for (int i=0; i 
  

使用

def path = getExistAarPath("lottie-release.aar", libsArray)
compileOnly files(path)

你可能感兴趣的:(android,android)