Выдается ошибка : Absolute path are not supported when setting an output file name.
                  
                  
                  
                  
                  
                  вот код:   applicationVariants.all { variant ->
                  
                  
                              variant.outputs.each { output ->
                  
                  
                                  def file = output.outputFile
                  
                  
                                  output.outputFileName = new File(file.parent, file.name.replace("app", "marshrut").replace(".apk", "-" + versionName + ".apk"))
                  
                  
                              }
                  
                  
                          }
                  
                  
                      }
                  
                  
                  
                  
                  
                  
                  
                  
                  как это можно исправить?
                  
                  
                
попробуй убрать new File... outputFileName должно быть строкой, по идее
Обсуждают сегодня