gradle new File报错
android.applicationVariants.all { variant -> def variantName = variant.name.capitalize() def mergeTask = tasks["merge${variantName}Assets"] def processTask = tasks["process${variantName}Resources"] def outFile = new File (mergeTask.outputDir.getAsFile().get(), "xwalk-command-line") def newTask = project.task("createXwalkCommandLineFile${variantName}") doLast { mergeTask.outputDir.mkdirs() outFile.write("xwalk ${xwalkCommandLine}\n") } newTask.dependsOn(mergeTask) processTask.dependsOn(newTask) }
本文出自 码农,转载时请注明出处及相应链接。
发表评论