title: No such property: name for class: java.lang.String Open File
body: <p>I pulled the following code from Wikitude examples but still getting build error. 
  <strong>No such property: name for class: java.lang.String Open File</strong>
  What am I missing?</p>
  
  <pre><code> applicationVariants.all { variant -&gt;
      variant.outputs.all  { output -&gt;
          def outputFile = output.outputFile
          if (outputFile != null &amp;&amp; outputFile.name.endsWith('.apk')) {
              def fileName = "wikitude-sdk-samples-" + variant.buildType.name + ".apk"
              output.outputFile = new File(outputFile.parent, fileName)
          }
      }
  }
  </code></pre>