jjzjj

getOutputFileName

全部标签

android - 错误 :(81, 0) 不再支持 getMainOutputFile。如果需要确定输出的文件名,请使用 getOutputFileName。

我正在尝试使用以下代码自定义构建过程android.applicationVariants.all{variant->defappName="MyApplication.apk"variant.outputs.each{output->output.outputFile=newFile(output.outputFile.parent,appName)}}但是从androidstudio3.0它不工作我得到低于错误错误:(81,0)不再支持getMainOutputFile。如果需要确定输出的文件名,请使用getOutputFileName。 最佳答案