libraryVariants.all { variant ->
          if (variant.buildType.name == "debug") {
              variant.getPackageLibrary().destinationDir = new File(project.rootDir.absolutePath + "/xxx")
          }

          if (variant.buildType.name == 'debug') {
              variant.outputs.all { output ->
                  def outputFile = output.outputFile
                  if (outputFile != null && outputFile.name.endsWith('debug.aar')) {
                     outputFileName = "${project.name}-${variant.flavorName}-${variant.buildType.name}.aar"
                  }
              }
          }
      }

相关阅读

相关文章:

  • 2021-04-11
  • 2021-12-26
  • 2021-09-28
  • 2022-01-20
  • 2022-12-23
  • 2021-12-24
  • 2022-01-13
  • 2021-12-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2021-07-25
相关资源
相似解决方案